WordPress.org

Ready to get started?Download WordPress

Forums

What controls the results of posts_nav_link? (1 post)

  1. mishko
    Member
    Posted 6 years ago #

    I'm making some big changed to my blog (which I've gone into detail about in this post), but there's one question in particular that I'd probably be better off asking separately.

    posts_nav_link... What file(s) handle the output of those pages? I use this tag at the bottom of each page of post results, which creates a link to "next" and "previous" pages of results. I want to change the URL that is created for these links so that instead of being
    domain.com/page/1/
    domain.com/page/2/
    it would be
    domain.com/blog/ (notice lack of "1")
    domain.com/blog/2

    I tried a search for posts_nav_link in code and only came up with the function in link-template.php which only appeared to dictate the display of the links rather than the URL of them.

    So what code could I start looking through to change these URLs?

Topic Closed

This topic has been closed to new replies.

About this Topic