Problems with is_home() or is_front_page() (5 posts)

  1. simv
    Posted 7 years ago #


    I am trying to make a mullet loop, but I only want the "business" to display on the very first page of my loop.

    I have tried using is_home() or is_front_page(), but they return true even if i have moved to the "previous entries page" (/pages/2)

    If you take a look at http://www.agamersodyssey.com you can see what I mean when moving to those previous pages.

    Any idea what I can do to achieve this?


  2. iridiax
    Posted 7 years ago #

    Try this:

    ((is_home()) && ($paged <= "1"))

  3. simv
    Posted 7 years ago #

    This worked perfectly! Thanks!

  4. deadlyhifi
    Posted 7 years ago #

    Took me a while to find it, but here it is in all its glory. Thanks.

  5. Ryan Hellyer
    Posted 6 years ago #

    Thanks for the tip! This was driving me batty trying to figure out how to check the page like that.

    I always assumed is_front_page() only worked on ... the front page! Oddly it doesn't, so this tip was darn helpful :)

    Thanks very much!

Topic Closed

This topic has been closed to new replies.

About this Topic