{"id":9825548,"date":"2018-01-01T20:42:59","date_gmt":"2018-01-01T20:42:59","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/pagination-issues-continue\/"},"modified":"2018-01-01T21:00:46","modified_gmt":"2018-01-01T21:00:46","slug":"pagination-issues-continue","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/pagination-issues-continue\/","title":{"rendered":"Pagination issues continue&#8230;"},"content":{"rendered":"<p>This is actually a follow up to <a href=\"https:\/\/wordpress.org\/support\/topic\/pagination-doesnt-work-on-child-pages-with-wpml-active\/\" rel=\"noopener\" target=\"_blank\">this thread<\/a>, which was closed.<\/p>\n<p>The pagination feature is not working correctly&#8230; due to URL breakage.<\/p>\n<p>The URL Posts in Pages is attempting to use:<br \/>\nhttp:\/\/thefan.net\/georgia-state-panthers\/?page=2<\/p>\n<p>The correct URL PiP should be using (which works):<br \/>\nhttp:\/\/thefan.net\/school\/georgia-state-panthers\/?tab=3&#038;page=2<\/p>\n<p>As you can see, there&#8217;s a &#8220;school&#8221; and &#8220;?tab=3&#8221; directive in the URL for the working version, that&#8217;s not present in the link under &#8220;next&#8221; (to the right of the first row&#8217;s images).<\/p>\n<p>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&#8217;s already a query string item, and append to the end of it via &#8220;;page=WHATEVER&#8221; if yes, otherwise, do a &#8220;?page=WHATEVER&#8221; if no.<\/p>\n<p>This would permanently solve any pagination issues past and future. \ud83d\ude42<\/p>\n<p>Note: I&#8217;m using &#8220;Advanced Custom Fields Pro&#8221; and &#8220;Custom Post Type UI&#8221; to render the URL\/page as I need to.<\/p>\n","protected":false},"template":"","class_list":["post-9825548","topic","type-topic","status-publish","hentry","topic-tag-pagination"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9825548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9825548\/revisions"}],"predecessor-version":[{"id":9825575,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9825548\/revisions\/9825575"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9825548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}