Pagination Issues with Custom Component
-
I have built a custom component which works with custom post types. I have the loops and queries all working to display my component within a Directory and within the members/custom-component section of the site. My queries work and filter to friends, fans and my items.
There are pagination links displaying at the bottom of the page which add ?item_page=2 but when I click the same results are redisplayed. The pages are loaded by ajax. I hav found a way to get other ajax pages to load by adding in an action to catch the ajax request and executing a function to figure out which template file to load based on the variables posted during that ajax request. Now the ajax requests post a page number too, but I dont understand how to turn that into an argument that my loop can handle.
Im also looking for how to get this to display in pretty permilinks too so that /page/2 is displayed rather then ?itempage=2
Thanks,
Jesse
- The topic ‘Pagination Issues with Custom Component’ is closed to new replies.