Using Conditional Statements In WordPress

Posted by admin in WordPress, widgets, ... | 10.23.2009 - 2:47 am

Addicott Web has a great little article online that goes in depth on the uses of WordPress conditional statements. 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. These statements enable a wide range of flexibility when it comes to when and where to display content. In fact, I use conditional tags all the time with my use of the Widget Logic plugin. I tell the widget which page I want it to be displayed on with a conditional statement and it only shows up on that page.
I love these things. Let me know in the comments what you’ve been able to achieve using them in your own theme or widgets.
Technorati Tags: blog

Original post by Jeff Chandler

    Technorati Tags:

    Related Posts:
  1. If, Then, Else
  2. ...
  3. CSS Specific for Internet Explorer
  4. ...
  5. Safest Way to Include Plugin Code in Themes
  6. ...
  7. Adding Scripts Properly to WordPress Part 3 – Page Detection
  8. ...
  9. is_home(), is_archive() not Working? Here is a Fix
  10. ...
  11. Underrated WordPress plugin round-up
  12. ...
  13. WordPress Plugin Releases for 05/17
  14. ...
  15. WordPress Workshop: Zero to Hero
  16. ...
  17. Define Your Own WordPress Loop Using WP_Query
  18. ...
  19. WordPress Plugin Releases for 2/3
  20. ...
  21. WordPress Plugin Releases for 10/28
  22. ...
  23. WordPress Plugin Releases for 12/14
  24. ...
  25. WordPress Plugin Releases for 04/17
  26. ...
  27. LightPress
  28. ...

  29. No Comments on "Using Conditional Statements In WordPress" »

    No comments yet.

    Leave a comment


    This is not a feed or the data is no good, sorry!
    *** bad url *** http://www.pluginfiles.com/feed/ *** bad url ***