Conditional tag for blog page not working
-
I am using WP 2.5.1,
In Settings>Reading, I have set the Posts page to a static page called “My blog”
Everything works correctly, the posts show up on this page.My problem is that I cannot find a single way to target this page with Conditional Tags. It does not react to is_page, is_archive, is_date, nothing.
The id of the “My blog” page in the tree is 4. I’ve tried is_page(‘4’), even tried is_page_template().The only thing it reacts to is excluding everything:
!is_date() and !is_page() and !is_category() and !is_archive() and !is_single()I don’t get, why this page is not an archive and not a page…
Any ideas?
Thanks, Remco
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Conditional tag for blog page not working’ is closed to new replies.