Home › Forums › Pro Support › AJAX Pagination loading same set of posts
- This topic has 12 replies, 2 voices, and was last updated 2 years, 1 month ago by
elvin.
-
AuthorPosts
-
August 3, 2021 at 10:58 am #32663
JC
ParticipantHello,
I have 1 WP Show Posts list on the home page and with AJAX Pagination enabled if you click LOAD MORE it loads the same posts as the latest at the top but with different dates.
You can see it on the home page on http://www.hangry.recipes
August 3, 2021 at 10:04 pm #32674elvin
ModeratorHi there,
Let’s try to debug this.
Can you try disabling ALL plugins except WPSP and see if it still occurs? To see if it’s a plugin conflict.
Also, if you have code snippets on your functions.php, can you temporarily comment them out as well? In case some may cause conflict.
Let us know how it goes. 😀
August 3, 2021 at 11:12 pm #32681JC
ParticipantHi Elvin,
Already tried that as in ALL off accept WP Show Posts Free and Pro and still not working and yes cleared the functions.php, no cache and flushed before I disabled the plugin.
August 3, 2021 at 11:38 pm #32683JC
ParticipantThe funny thing is with pagination on and AJAX off page/2/ does not work only seems like 4/5/6 works lol. Its going off for now as I cannot have that on the site and I will test it on another install later to see if the problem persists.
October 25, 2021 at 9:07 pm #34914elvin
ModeratorHi JC,
My apologies. Thread got buried.
Have you ever sorted this out? This is quite unusual as we’ve never encountered AJAX pagination issues that only occur on the 2nd page.
Do you have other WordPress sites w/ WPSP? Does the same issue occur on them?
October 25, 2021 at 10:22 pm #34916JC
ParticipantHi Elven,
Unfortunately not, have lots of or had lots of issues with the pagination not just on load more ajax but the others so not using it so back to page 1,2,3, standards.
October 25, 2021 at 10:44 pm #34918elvin
ModeratorStrange.
Let me try to remember the context. Is WPSP list added on a blog index page?
Or perhaps, were there any other post loops within the same page other than the WPSP? like the default blog index post listing or another WPSP list?
If there were then that could be an issue.
If there’s only 1 post loop on a page like this – https://dev-generate-press.pantheonsite.io/wp_show_posts-id7/ – then it would work fine.
But if there are 2 post loops and 1 has an offset, then that could break things like the WPSP in this sidebar – https://dev-generate-press.pantheonsite.io/blog/
This is pretty much the only known bug and it’s a WordPress core bug. (WP_Query bug to be specific)
-
This reply was modified 2 years, 1 month ago by
elvin.
October 25, 2021 at 10:53 pm #34921JC
ParticipantHello, no it’s the only one, you can have a look on the home page of this site I just activated ajax again, https://www.hangry.recipes/
-
This reply was modified 2 years, 1 month ago by
JC.
October 25, 2021 at 11:56 pm #34924elvin
ModeratorStrange indeed.
Can you clone the site to a staging site and let us have backend access to it? To check its backend as to why it occurs on your site.
I’d like to check the settings of the site (and plugin combination) to try to replicate this issue on my end as well to confirm if its another bug.
You can send the details on our contact page – https://wpshowposts.com/contact/
-
This reply was modified 2 years, 1 month ago by
elvin.
October 26, 2021 at 1:04 am #34927JC
ParticipantI will sned you a mail now.
October 26, 2021 at 10:29 pm #34971elvin
ModeratorThanks.
I’ve inspected the site and the issue seems to occur only when Yoast SEO Premium is activated.
Perhaps it has a settings that messes w/ the AJAX requests.
Note: I left the Yoast SEO Premium deactivated for you to see. You can activate it again to check that it’s the one causing the issue. 😀
-
This reply was modified 2 years, 1 month ago by
elvin.
October 26, 2021 at 11:17 pm #34978JC
ParticipantHello, yoast premium will ad for the most part only back-end user features nothing in the front end and I have disabled some of the features that might affect the front-end but did not help it to work. Unfortunately will have ot file this as WP Show posts pagination not working with Yoast Premium as Yoast will not fix an issue with a 3rd party plugin.
Thanks for your help and for now I will just have to leave it disabled.
October 27, 2021 at 2:34 am #34981elvin
ModeratorNo problem. 😀
-
This reply was modified 2 years, 1 month ago by
-
AuthorPosts
- You must be logged in to reply to this topic.