Archives for Experts
As probably you know, wordpress don't support natively conditional tags "if in taxonomy", but only "if is taxonomy", after a short googlization, i've found a cool snippet to do this. So follow the instructions after the jump.
Facebook Recommendations Bar is one of the best way to increase your website's traffic from the biggest social network on the planet. In this Step by step how to Wpcode try to show you how to add a reccomedations bar to your wordpress blog.
I'm little bored to set for each post the featured image, so I've found this little php snippet that fetch the fist image of a post, and set that as "Featured", Apply this snippet on your function.php
Adding this code to your function.php you can create a shortcode that take (and publish) screenshot of custom website; in the code below I'll attach 3 atts: first for the url, second for the width and third for the heigh.
Another conditional tags you can use to redirect user with specific role to specific page after login. Insert this code to your function.php
When you create new page's template you can decide to limit the access to user with specific role; for exaple author, when unregistered user or user with different role try to access to that template will be kicked our to the "error.php" page. Funny!!!