• This is actually a follow up to this thread, which was closed.

    The pagination feature is not working correctly… due to URL breakage.

    The URL Posts in Pages is attempting to use:
    https://thefan.net/georgia-state-panthers/?page=2

    The correct URL PiP should be using (which works):
    https://thefan.net/school/georgia-state-panthers/?tab=3&page=2

    As you can see, there’s a “school” and “?tab=3” directive in the URL for the working version, that’s not present in the link under “next” (to the right of the first row’s images).

    Realistically (and ideally) all that should be happening is that the pagination stuff should be appending to the end of the URL. Detect if there’s already a query string item, and append to the end of it via “;page=WHATEVER” if yes, otherwise, do a “?page=WHATEVER” if no.

    This would permanently solve any pagination issues past and future. ??

    Note: I’m using “Advanced Custom Fields Pro” and “Custom Post Type UI” to render the URL/page as I need to.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi, thanks for posting this follow-up thread as well as the original one.

    I followed your directions and changed line 61 in class-page-posts.php from
    $page_url = home_url( '/' . $wp_query->post->post_name . '/' );
    to
    $page_url = home_url( '/' . get_page_uri( $wp_query->post->ID ) . '/' );

    However, I changed it within the plugin folder itself. When I try to copy the file and place in my child theme, no arrangement of the placement of the file, such as adding a plugins folder > posts-in-page > includes or just posts-in-page > includes or just includes or even just the file itself, deems the same results as changing the file in the original plugin folder directly.

    Any suggestions?

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • The topic ‘Pagination issues continue…’ is closed to new replies.