Why is is_home not working?
-
Someone please help, as I’m pulling out what little hair I have left … cannot get is_home to behave properly.
Nutshell: We need to show different banner ads on the sidebar of the front page than on any other site pages. So I’m using conditional tags and includes to do this:
<?php if (is_home()) { include('tiles_front.inc.php'); } else { include('tiles_default.inc.php'); } ?>
… but even when I’m on the home page, that returns the code from the second include.
It is a static home page, and I have a feeling this is the crux of the issue. Tried plugins, tried using is_page any number of different ways (page slug, page ID, page title), but it never recognizes the home page as the home page.
Help?
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Why is is_home not working?’ is closed to new replies.