Screencast: Part 23: Practical example of using WordPress Conditionals

Many times you’ll want content to appear only on one page and WordPress gives you the ability to pick and choose which page or pages to show your content. The way WordPress enables you to do this is through conditionals. This screencast shows you what I am talking about with a practical example.

Sample code

[prettify]



[/prettify]

Links used in Screencast

PHP alternatives for conditionals
WordPress conditional Tags

Back to Main WordPress Page with all Tutorial Links

Back to Main WordPress Page with list of tutorials on creating a WordPress custom theme from scratch.

Leave a Reply

Your email address will not be published. Required fields are marked *