Conditional tags misbehaving
-
My conditional tags work right in the header, on the various content pages, but not in the footer. If I’m on a page and I just run a simple test like:
<?php
if ( is_page() )
echo "It's a page!";
?>
It will echo correctly if I put it in the header or in the content area, but it won’t in the footer. Eventually I figured out it’s registering is_home(). For some reason on a page, the footer thinks it’s actually the home page. The footer correctly displays other conditional tags though, for instance, when it’s a search page the footer registers is_search().
Anyone know what might be the problem?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Conditional tags misbehaving’ is closed to new replies.