WordPress.org

Ready to get started?Download WordPress

Forums

How to tell if it's the first page? (2 posts)

  1. jrawle
    Member
    Posted 6 years ago #

    I have the standard blog page as my front page. It displays five posts, then there is a "Previous" link to display older posts. This leads to a page called /page/2/ then /page/3/ and so on.

    I can use is_home() to determine whether I'm on the front page. However, this also returns true for page 2, page 3 etc.

    How can I determine whether I'm on the first page of the homepage only?

  2. whooami
    Member
    Posted 6 years ago #

    <?php if (empty($paged)) ...

Topic Closed

This topic has been closed to new replies.

About this Topic