WordPress.org

Ready to get started?Download WordPress

Forums

Next/Prev page from home (static) page (2 posts)

  1. DanielEK
    Member
    Posted 7 years ago #

    I use 'home.php' as my static home page. I display the first ten most recent posts (all categories) directly below some static (and dynamic) content.

    MY PROBLEM:

    I can't seem to find a way to add the NEXT/PREV PAGE links (below the last post). I've added the code, but the buttons never show up (from a static page).

    I just want to navigate to the next ten posts. The next ten posts will then use the 'index.php' template. This appears to be a problem because I started from a static page. Any ideas???

  2. jrawle
    Member
    Posted 7 years ago #

    Can you just create a link at the bottom of your static page to: http://yoursite.com/page/2/
    That should be the next ten posts displayed in the usual blog format.

    Alternatively, you could scrap the static page, and instead add the content you want to index.php, and add a conditional statement to check if you are on the home page or not so that the static content is only shown on the home page.

Topic Closed

This topic has been closed to new replies.

About this Topic