• Hi,

    Under Reading Settings, I have set a static homepage and blog page which is causing is_home() || is_front_page to return TRUE on the defined posts page.

    Is there a quick code snippet which can be used to stop this returning TRUE so the code in the header will only appear on the homepage and not on subpages?

    I can cheat and remove the posts page (and therefore need a custom page template to add the blog page) but surely this functionality is either built in or can be filtered?

    Many thanks,

    James

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stop is_front_page || is_home returning TRUE on posts page’ is closed to new replies.