Analyst/Consultant/Coder

Conditional Tags

There are a number of handy conditional tags provided by Kazoo that implement the If|Then|Else hierarchy. Each of these tags have been closely coded to match thier PHP counterparts from the WordPress API.

Each tag in this list provides a branching operation based upon a condition that exists in a WordPress page post and/or comment. Some of these tags do not accept any parameters:

  • is_front_page
  • is_home
  • is_time
  • is_date
  • is_admin

Other tags that have a similar form accept parameters in the form of either a comma separated list of ID, Name or formatted Query. These are:

  • is_archive
  • is_author
  • is_page
  • is_post
  • is_singular
  • is_sticky

These tag handlers accept a single parameter that is passed to the core WordPress function having the corresponding name. Please review the WordPress CODEX for more information on these important functions.

Copyright © 2011. All Rights Reserved.