Simple PHP if/then/else code

Very often in customizing themes, I run into the need for simple if/then/else logic. Maybe I want to display the author name only in certain categories, or I need a certain plugin to display output only on certain posts or pages, for example. Adding a quick bit of PHP...

Thinking of using a design contest site? Think again.

Let me tell you a story… Once upon a time a running group decided they wanted a new web site design. They thought that going to one of those “crowdsourcing” sites would be a great way to go because they could hold a design contest and get lots of...

Display custom fields in your theme

This is a simple bit of code that can save you a lot of time if you know you’ll have recurring items in each post. For example, the “read article” button in most of the posts on this site is done using a custom field called “link” within...