[Resolved] Pagination inside custom post types

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Pagination inside custom post types

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #689
    Jamal
    Participant

    Hi Tom

    I somehow can’t get pagination to work inside custom post types. Please take a look here. Thanks

    #691
    Tom
    Keymaster

    Hmm, not sure why that would happen.

    Regular or AJAX pagination?

    Can you share the code you’re using to create the CPT (using pastebin or something similar)?

    Thanks!

    #692
    Jamal
    Participant

    This is the code im using to register new CPT http://pastebin.com/ae6vWUr3. Both regular and ajax pagination don’t seem to work.
    Come to think of it, the problem might not be with CPT but the way im setting up things. I want to have a pizzeria menu categories created as a WPSP list and in each category i will like to display another WPSP list of woocommerce products from a specific category.

    #694
    Tom
    Keymaster

    Hmm, can’t see anything wrong with the CPT.

    I don’t believe it’s possible to use WPSP to display categories? Unless you’ve discovered a part of the plugin I didn’t mean to write?

    #700
    Jamal
    Participant

    With categories i meant food categories as per the food menu, sorry i wasn’t clear on that. Let me explain to you my set-up better:

    I have a WPSP list that shows posts from a certain Post category as seen here. Each of those posts will show a WPSP list of products from a certain woocommerce product category as seen for example here

    Anyway to make the pagination work in this setup or might you know a better way i can go about this? Thanks

    #702
    Tom
    Keymaster

    It’s so cool to see different implementations like this 🙂

    Can you try the latest files?: https://github.com/tomusborne/WP-Show-Posts

    I’m not seeing any reason why it wouldn’t work.

    #706
    Jamal
    Participant

    This awesome plugin gives us so much options and variations, thank you !

    Still can’t get the pagination to work unfortunately, will give it a try on a clean install and let you know. Thanks so far

    #727
    Jamal
    Participant

    I got it to work albeit in a different set-up. I used pages in the first wpsp list (showing only certain page-ids) and each of those pages will show a wpsp list of a certain product category.

    Thanks.

    #729
    Tom
    Keymaster

    Awesome, glad you found a solution 🙂

    #1715
    Jamal
    Participant

    Hi again

    I’m having a pagination issue again so i thought i will use this topic. Please take a look here http://ermias.kebhee.se/paintings/ , that page is displaying custom post type created using this code http://pastebin.com/mStifp00. I tried deactivating plugins and so on but nothing helped.

    #1721
    Tom
    Keymaster

    Have you tried re-saving your permalinks in “Settings > Permalinks”?

    #1723
    Jamal
    Participant

    I think there must be something messed up with the code im using to genereate my CPTs. I have tried many times re-saving the permalinks to no avail. As i don’t require the wpsp hooks and other helpful styling for current project i’m considering using default GP blog and hopefully this problem goes away. Will let you know. Thanks so far !

    #1731
    Jamal
    Participant

    By looking at a plugin you recommended on GP support forum i found the problem was my code. I was missing , 'with_front' => true in my rewrite. Major headache solved, i wont be bothering you for a while now. Thanks very much for your help and understanding.

    #1734
    Tom
    Keymaster

    Ah! Glad you found a solution! Thanks for sharing 🙂

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