Site logo

[Resolved] WP Show Posts Pagination broken

Home Forums Support [Resolved] WP Show Posts Pagination broken

Home Forums Support WP Show Posts Pagination broken

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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.

    #2131836
    David
    Staff
    Customer Support

    Hi 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.

    #2132894
    Angie

    Thank you. Followed your steps. Unfortunately the problem still exists.

    #2132924
    Fernando
    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. 🙂

    #2132943
    Angie

    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.

    #2132957
    Fernando
    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. 🙂

    #2132975
    Angie

    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.

    #2132979
    Fernando
    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. 🙂

    #2132986
    Angie

    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.

    #2133011
    Fernando
    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! 🙂

    #2133069
    Angie

    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 working

    Now 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.

    #2133097
    Fernando
    Customer Support
    #2137660
    Angie

    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.

    #2140123
    Fernando
    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. 🙂

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.