Navigate within term from custom post type
-
I’ve set up a custom post type called “portfolio” and inside that I have a taxonomy called “media” with terms like “logos”, “print”, etc.
On my main portfolio pages, I have these terms sectioned of into groups on the page and feed in the most recent 5 from each. Works perfectly.
When a visitor clicks through to the single page (single-portfolio.php), however, I want the next/previous navigation to stay within that term (each post has only one term associated with it). Currently, the navigation moves in order of most recent but contains all of the posts within the “portfolio” custom post type.
How do I set it up so that when they click on a logo from the main page, that the single page will then navigate to other posts that are also tied to the “logos” term instead of all the portfolio posts?
- The topic ‘Navigate within term from custom post type’ is closed to new replies.