WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. simv
    Member
    Posted 5 years ago #

    Hi,

    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?

    Simon

  2. iridiax
    Member
    Posted 5 years ago #

    Try this:

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

  3. simv
    Member
    Posted 5 years ago #

    This worked perfectly! Thanks!

  4. Tom(dB)
    Member
    Posted 5 years ago #

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

  5. Ryan Hellyer
    Member
    Posted 4 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