Title: Pagination issues continue&#8230;
Last modified: January 1, 2018

---

# Pagination issues continue…

 *  [Douglas “BearlyDoug” Hazard](https://wordpress.org/support/users/bearlydoug/)
 * (@bearlydoug)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/pagination-issues-continue/)
 * This is actually a follow up to [this thread](https://wordpress.org/support/topic/pagination-doesnt-work-on-child-pages-with-wpml-active/),
   which was closed.
 * The pagination feature is not working correctly… due to URL breakage.
 * The URL Posts in Pages is attempting to use:
    [http://thefan.net/georgia-state-panthers/?page=2](http://thefan.net/georgia-state-panthers/?page=2)
 * The correct URL PiP should be using (which works):
    [http://thefan.net/school/georgia-state-panthers/?tab=3&page=2](http://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.
    -  This topic was modified 8 years, 5 months ago by [Douglas "BearlyDoug" Hazard](https://wordpress.org/support/users/bearlydoug/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpagination-issues-continue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [mkelleyici](https://wordpress.org/support/users/mkelleyici/)
 * (@mkelleyici)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/pagination-issues-continue/#post-10244403)
 * Hi, thanks for posting this follow-up thread as well as the [original one](https://wordpress.org/support/topic/pagination-doesnt-work-on-child-pages-with-wpml-active/).
 * 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.

 * ![](https://ps.w.org/posts-in-page/assets/icon-256x256.png?rev=1596190)
 * [Posts in Page](https://wordpress.org/plugins/posts-in-page/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-in-page/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-in-page/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-in-page/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-in-page/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-in-page/reviews/)

## Tags

 * [pagination](https://wordpress.org/support/topic-tag/pagination/)

 * 1 reply
 * 2 participants
 * Last reply from: [mkelleyici](https://wordpress.org/support/users/mkelleyici/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/pagination-issues-continue/#post-10244403)
 * Status: not resolved