- This topic has 13 replies, 3 voices, and was last updated 4 years, 3 months ago by
Fernando.
-
AuthorPosts
-
February 24, 2022 at 6:32 am #2131798
Angie
Hello!
I have a custom post type “news”. I want to use WP Show Posts* to display all posts on a page. I want to use pagination, actually I’d prefer infinite scroll, but that’s not an option at the moment, right?So I use WP Show Posts inbuild Pagination. But when I click on any link in the pagination, no posts are found.
I tried this fix: https://wpshowposts.com/support/topic/pagination-not-working/#post-28188
But what does this mean: “If I may suggest a workaround, can you try removing the offset on WGP Archive? ”I do have a widget with a wpsp list with the same custom post type, tried to delete the sidebar with the wpsp list from archive pages, and also copied the given code (in the article) to function.php But still the same problem.
*Any updates on the integration of WP Show Posts into GeneratePress?
Thank you for your help!
Angie.February 24, 2022 at 7:09 am #2131836David
StaffCustomer SupportHi there,
can you remove any code you added to your functions for WP Show Posts.
Then go to Settings > Permalinks and click Save Changes to simply rebuild the permalinks.Then retry the pagination after clearing any cachces.
Regarding the update. WP Shows Posts is being integrated into our Block Plugin: GenerateBlocks.
We’re hoping to have a beta release sometime before the end of March. With expectations of a Q2 release date.February 25, 2022 at 12:40 am #2132894Angie
Thank you. Followed your steps. Unfortunately the problem still exists.
February 25, 2022 at 1:08 am #2132924Fernando Customer Support
Hi Angie,
With regards to the code here, can you try it again, and remove the Offset in the “More settings” of your WPSP lists.
Kindly see: https://share.getcloudapp.com/Qwu4NJB2
Kindly let us know how it goes. 🙂
February 25, 2022 at 1:34 am #2132943Angie
Hello!
There was no offset to remove, but nevertheless, I checked and saved again. Cleared the Cache. But still the same.
What did you mean by: “With regards to the code here, can you try it again” ?thank you, Angie.
February 25, 2022 at 1:49 am #2132957Fernando Customer Support
I see.
I meant the code provided by Elvin here: https://wpshowposts.com/support/topic/pagination-not-working/#post-28188
If that’s the case, can you try temporarily disabling other plugins aside from GP plugins and WPSP and then rebuilding your permalinks once more after this.
See: https://www.inmotionhosting.com/support/edu/wordpress/reset-permalinks-wordpress/
Kindly let us know how it goes. Hope we get to the bottom of this as soon as possible. 🙂
February 25, 2022 at 2:05 am #2132975Angie
Now it works!
My steps were: disabling all Plugins except GP and WPSP > rebuilding permalinks > activating plugins again > clearing cache > worked!
Thank you very much!
Angie.February 25, 2022 at 2:07 am #2132979Fernando Customer Support
You’re welcome Angie! Glad it’s working now! Feel free to reach out anytime if you’ll need assistance with anything else. 🙂
February 25, 2022 at 2:11 am #2132986Angie
One step I forgot: I also pasted the code provided here to functions.php https://wpshowposts.com/support/topic/pagination-not-working/#post-28188
thanks alot!
angie.February 25, 2022 at 2:31 am #2133011Fernando Customer Support
Not sure if this code is needed still. You can probably try removing it temporarily and see it it’s still going to work. 🙂
You’re welcome again Angie! Glad to be of service! 🙂
February 25, 2022 at 3:22 am #2133069Angie
Hello! I’m so sorry, but it broke again and I can’t determine where the problem is. 🙁
In the middle of working I saw that the problem reappeared.
So what I did is:
– deactivate all other plugins again
– rebuild the permalinks
– then the list of posts and pagination pages worked again. but I can’t read the single posts, this is actually a mistery for me why the posts are displayed at all, when ACF is deactivated…?
– deleted the functions.php code from Elvin > the list and pagination is still workingNow I tried activating plugins one by one. always clearing cache after every step.
What I’m seeing now is: I think there’s something wrong with my permalink structure and . I can’t have both at the moment,
– EITHER the post list breaks with pagination, and the posts are linked correctly
– OR the list and pagination works, but the posts can’t be reached.I think I may have changed the slug of the custom post type a while ago to “news” in ACF. Maybe I didn’t realize it then, and that’s where the problem started?
This is very confusing.
Thanks again for your help. I guess this is not completely your topic anymore.
Angie.
February 25, 2022 at 3:49 am #2133097Fernando Customer Support
You’re welcome Angie! This is indeed weird. I tried researching about it and this is what I came across:
Maybe you could reach out to your hosting provider and check if they have any input with regards to this.
Hope you get to resolve this! 🙂
March 1, 2022 at 3:58 am #2137660Angie
Hi again!
So, now this topic is really resolved.
There must have been a conflict between the slug “news” and a page with the name “news”.
What I did was:
> delete the custom post type. create it new (maybe that was not necessary).
> change the pages name to “news-page” (maybe that would have sufficed).Thank you for all your time!!
Angie.March 2, 2022 at 5:10 pm #2140123Fernando Customer Support
You’re welcome Angie! Glad you were able to figure out the cause of the issue! Feel free to reach out anytime if you’ll need assistance with anything else. 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.