I have a CPT of 'Projects' and a custom taxonomy term tied to that called 'Sections' (basically the same as 'categories' I just find it clearer to use a different term name on a CPT than on standard Posts).
So I access all my Projects via /projects, and only those within the Section named 'Design' via projects/design. All good.
What I need though, is once on an individual Project view, to have Previous/Next links that are tied to the current taxonomy, i.e. I need to somehow pass in to the single-project.php template a way for it to know which taxonomy to stay within when linking to the next/previous Project.
To further complicate, Projects can be in multiple taxonomy terms e.g. in both 'Design' and 'Development'. If a Project is accessed directly without going through a taxonomy page i.e. via example.com/my-project-title, then the next/previous will simply disregard taxonomy and cycle through all Projects.
Does anyone have an idea how to tackle this? Not had this scenario before and it has me beat. Any help is appreciated.