If you are diving into the world of WordPress conditional tags don’t forget that there are few keys to targeting blog related pages.

  1. There is NO

    conditional tag — using this will break your theme.

  2. To target the main blog page you must use

    — do not confuse with


    which will target your home page if you are not using the blog page as your home.

  3. To target all other blog pages and single pages you can use
    is_single() || is_archive()

Happy conditionalizing!!

Resources for WordPress conditional tags:

WordPress Codex

ThemeLab Ultimate Guide

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop us a note so we can take care of it!


All entries, chronologically...