WordPress’ is_X() function

An entry at the WordPress support forums{#13505} gave me the list I needed. How do they work?

“You can use [these] in a conditional to display certain stuff only on [certain] page[s], or to omit certain stuff on [those] page[s].”

Here’s the list:

  • is_404()
  • is_archive()
  • is_author()
  • is_category()
  • is_date()
  • is_day()
  • is_feed()
  • is_home()
  • is_month()
  • is_new_day()
  • is_page()
  • is_search()
  • is_single()
  • is_time()
  • is_year()

So there you go.