This is a collection of tips, tweaks and tutorials to make your wordpress theme building and blog running a little easier. The learning is short or nugget style.

Managing state in wordpress

 
Sometimes we want to display a different button for when you are logged-in and another for when you are not.. (See pictures) Login button example logout button example /*we figure out if user is logged in? If not logged in, show button, else show button */ a href='/ wp-login.php”target=“new” class=“login”> login / wp-login.php?action=logout” target=“new” class=“logout”> logout

Instead of styling the link classes, you can also just change the text

...
 

Rails versus Java

 
Nothing brings across a point as much as a visual interpretation. heres a couple of my favourites.. [youtube PQbuyKUaKFo RailsVsJava] [youtube p5EIrSM8dCA RubyVsPHP]
 

Selective Content in Wordpress

 
I was reading David Airey's post called "What are your favourite creative quotes" and having a good laugh at the "You cant polish turd" quote, when I came upon his concern about including quotes in every footer. He definetely expressed a bloggers genuine nightmare of too many outgoing links. I started to type my tip in his comments page, when I figured that the larger population may benefit with this tip. The solution is ...