Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter saxonycreative

    (@saxonycreative)

    I figured out a solution, if anyone is interested. In page_posts.php I changed line 48 from

    $page_url = home_url( ‘/’ . $wp_query->post->post_name . ‘/’ );

    to

    $page_url = home_url(add_query_arg(array()));

    This kept the complete URL intact and added the pagination query to the end, successfully making the link follow the structure site.html/section/?page=2

    No more 404 ?? Maybe this fix can be added to the next version?

    Plugin Author Eric Amundson

    (@sewmyheadon)

    Thanks saxonycreative!

    We’ll review this and see about including it in an upcoming version.

    You’re also always welcome to collaborate and shoot over pull requests via GitHub.

    https://github.com/ivycat/Posts-in-Page

    Eric

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pagination not working’ is closed to new replies.