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
conditional tag — using this will break your theme.
- 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.
- To target all other blog pages and single pages you can use
is_single() || is_archive()