Forums

[resolved] Using is_home correctly? (3 posts)

  1. drummy
    Member
    Posted 2 years ago #

    Hi,
    what I'm trying to do is:
    If the person is on the start page of my blog, display some HTML above the first post. If they are not on the start page, then not.
    So if they click on "Previous Entries" and go back and forth with that, it should not be displayed.
    But it's not working like that. When you click on Previous or Next entries, it's still displayed.

    Any ideas anyone? I'd really appreciate the help. :)

    Thanks in advance!

  2. drummy
    Member
    Posted 2 years ago #

    I figured it out.
    Instead of:
    <?php if(is_home()) : ?>
    I now use:
    <?php if ((is_home()) && ($paged <= "1")) : ?>
    And that works great. :)

  3. recryl
    Member
    Posted 2 years ago #

    This is working perfectly - thank you :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags