Fire Studios

Archive

Contact

Categories

  • Coding
    • CSS
    • HTML/Javascript
    • PHP
  • Design
  • Freebies
  • General
  • Internet
  • Interviews
  • Plugins
  • Podcasts
  • Reviews
  • Screencasts
  • Tutorial
  • Weekday Tips
  • Wordpress

Podcast

Weekday Tip: WordPress Conditional Tags

Weekday Tip: WordPress Conditional Tags

Wordpress' conditional tags are by far one of the most useful and unglorified tools for theme and plugin development. Here's a list of all the 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. For example, you might want to display a snippet of text above the series of posts, but only on the main page of your blog. With the is_home() Conditional Tag, that task is made easy.

  • is_home()
  • is_front_page()
  • is_admin()
  • is_single()
  • is_sticky()
  • is_comments_popup()
  • comments_open()
  • pings_open()
  • is_page()
  • is_page_template()
  • is_category()
  • is_archive()
  • is_tag()
  • has_tag()
  • is_author()
  • is_date()
  • is_year()
  • is_month()
  • is_day()
  • is_time()
  • is_search()
  • is_404()
  • is_paged()
  • is_attachment()
  • is_singular()
  • is_feed()
  • is_trackback()
  • is_preview()
  • has_excerpt()
  • in_the_loop()
  • is_active_sidebar()

For a description of each visit the WordPress codex.

Reader's Thoughts

  • Patternhead

    Nice post but it could have been even better if you'd linked each tag to the right codex page.

  • Mark

    Next week, the alphabet :

    - A
    - B
    ...

  • Pameladuat

    I really very liked this post. Can I copy it to my blog? Thank you in advance. Sincerely

  • Fire G

    Sure, just put a link back to here in the article.

  • raghu

    Hi, thanks,
    i want to learn full php, so pleaz send the link for me, how to learn PHP in easy way,,,,

    byee, thank you.

  • KeHoeff

    hey this is a very interesting article!

  • Raj

    I want to learn full PHP very easily, o please send me links. Let me know how to learn PHP very easy way....

    bye, thanks

  • Fire G

    @Raj: You can learn the basics of PHP at W3Schools.

  • Adam

    And again! Thank you. Pesky WordPress!

Your Thoughts?

 

This is that small text that tells you not to steal our stuff, but we don't really care too much.