I’m no programmer or hard-core web designer but WordPress motivates me to become one. First, I created my own theme. Next, I wanted to tweak the sidebar so that when a single post, archive listing, or category listing was displayed, it would show a plug-in that I have activated called “sameCat” (via category and courtesy of CG-Powerpack). I didn’t want this to be displayed on the main page but only when certain conditions were met…hence conditional tags:
The Conditional Tags can be used in your Template files to change what content is displayed and how that content is displayed on a particular page depending on what conditions that page matches.
This is probably old news to many of you out there and you can refrain from shouting “newb” or “noob”, as I admit…I’m new at this. Anyways, I finally understood what all those weird PHP commands were in my sidebar and why some theme instructions had “DO NOT move this line below this line.” Using “if_single, if_category, and if_archive” I achieved my desired output. You can see how the sidebar changes and displays the plug-in on everything but the front page. Cool, no?!
