WordPress.org

Ready to get started?Download WordPress

Forums

posts_nav_link creating Moebius strip (1 post)

  1. muraii
    Member
    Posted 8 years ago #

    Hi there,

    I've posted about this before, but nothing came of it. Toward having a front page with an arbitrary number of recent posts on it, I made a home.php file and added a call such as

    query_posts('posts_per_page=5');

    This works as expected. However, the posts_nav_links call doesn't work correctly. The URL returned is something like

    http://www.erectlocution.com/boxing/page/2/

    which only displays the same five most recent posts. Each successive clicking of “next page” results in iterative repetitions

    http://www.erectlocution.com/boxing/page/3/
    http://www.erectlocution.com/boxing/page/4/
    http://www.erectlocution.com/boxing/page/5/

    I dug into templates-functions-links.php to try and find a way to make the output work correctly, but I couldn't figure it out. It seems as if there is a disconnect between the output of home.php and the remainder of the blog via these “next page” links as generated by posts_nav_links().

    Any thoughts?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.