Customizing Pagination for CPT Single
-
I’ve set up a CPT with pagination on the CPT single.php to loop through the posts to help with the user experience.
Here’s the logic. There’s a page called ‘team’ with team members listed in alphabetical order. Once you click on a specific team member you’re given their profile with the ability to move to the next post from within the post. The next link works.
The issue I’m having is that I can’t customize the posts that appear next within the pagination. They are appearing in order of date, and I’d prefer them to appear by order of title as they do on the main team page.
When I add a query_post string above the loop it starts pulling in content from the blog and stops treating the page like a single.php.
Help!
- The topic ‘Customizing Pagination for CPT Single’ is closed to new replies.