is_home() and is_front_page() known to be borked?
-
My footer.php wants to include some checks to see whether to display some sponsor lines, which depend on whether the (web) page is the home page, or one of a small set of (wp) pages, or a specific (wp) post.
The if statement provided to detect the home page does not trigger with is_home(), nor with is_front_page, nor with is_page(<anything I could think of>) nor with is_single(<ditto.).
I have finally set a global in homepage.php and checked it in the footer. In the course of figuring this hack out, I tweeted and chatted with pals who know WP.
The general impression is that is_home() and is_front_page() are known to be borked. Is this the case? Is there a plan? Is there a good workaround?
Thanks!
Ron
- The topic ‘is_home() and is_front_page() known to be borked?’ is closed to new replies.