If you are diving into the world of WordPress conditional tags don’t forget that there are few keys to targeting blog related pages.
- There is NO
is_blog()
conditional tag — using this will break your theme.
- To target the main blog page you must use
is_home()
— do not confuse with
is_front_page()
which will target your home page if you are not using the blog page as your home.
- To target all other blog pages and single pages you can use
is_single() || is_archive()
Happy conditionalizing!!








