WordPress.org

Ready to get started?Download WordPress

Forums

Older Blog Posts Will not display (5 posts)

  1. DavidNiallWilson
    Member
    Posted 6 years ago #

    I have a custom designed template, and it operates beautifully, with one exception. My blog is located on a page other than the normal page for the blog.

    http://macabreink.com/davids-blog-home

    This page is set to display the three most current blog posts, and it does. The problem is that the next and previous buttons at the bottom, the ones that SHOULD allow you to scroll back through my past posts, only bring back up the same page with the same three blog posts. My designer has tried looking at the code, but it hasn't fixed the problem. Any suggestions?

    David

  2. moshu
    Member
    Posted 6 years ago #

    My blog is located on a page other than the normal page for the blog.
    Q: How that "other page" has been created? If not through admin > Options > Reading - then the prev/next will not work.
    It will also not work if you have a custom Loop in the file.
    Next/prev is looking for the index.php file to work (or for a Page that has been assigned to the the front page in the Reading options...)

  3. DavidNiallWilson
    Member
    Posted 6 years ago #

    The template was created for me by a designer. I notice that when I go to any of the individual post pages, the previous next function is fine...I'm just trying to find a way to emulate it on the main page.

  4. moshu
    Member
    Posted 6 years ago #

    I notice that when I go to any of the individual post pages, the previous next function is fine...
    That's another function! Don't mix them.

    1. For index & archives & search... Template_Tags/posts_nav_link

    2. For single post view:
    Template_Tags/previous_post_link and Template_Tags/next_post_link

  5. DavidNiallWilson
    Member
    Posted 6 years ago #

    Would it be possible to make an almost identical function that points to the page I'm actually using and does (basically) the same thing - just pointing it to the custom page instead of the original blog page?

Topic Closed

This topic has been closed to new replies.

About this Topic