Home › Forums › Pro Support › Pagination inside custom post types
Tagged: custom-post-types, pagination
- This topic has 13 replies, 2 voices, and was last updated 6 years, 9 months ago by
Tom.
-
AuthorPosts
-
September 4, 2016 at 2:20 pm #689
Jamal
ParticipantHi Tom
I somehow can’t get pagination to work inside custom post types. Please take a look here. Thanks
September 4, 2016 at 11:48 pm #691Tom
KeymasterHmm, 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!
September 5, 2016 at 12:55 am #692Jamal
ParticipantThis 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.September 5, 2016 at 10:55 pm #694Tom
KeymasterHmm, 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?
September 6, 2016 at 12:44 pm #700Jamal
ParticipantWith 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
September 6, 2016 at 9:35 pm #702Tom
KeymasterIt’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.
September 7, 2016 at 12:51 am #706Jamal
ParticipantThis 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
September 8, 2016 at 12:49 pm #727Jamal
ParticipantI 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.
September 9, 2016 at 12:07 am #729Tom
KeymasterAwesome, glad you found a solution 🙂
March 8, 2017 at 5:38 am #1715Jamal
ParticipantHi 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.
March 8, 2017 at 6:18 pm #1721Tom
KeymasterHave you tried re-saving your permalinks in “Settings > Permalinks”?
March 9, 2017 at 2:05 pm #1723Jamal
ParticipantI 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 !
March 10, 2017 at 1:12 am #1731Jamal
ParticipantBy 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.March 11, 2017 at 12:05 am #1734Tom
KeymasterAh! Glad you found a solution! Thanks for sharing 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.