I have a bit of a tricky one. I can figure out how to do back, previous, and next links for a specific taxonomy term, what I can't figure out is how to specify which term the user started viewing posts from.
I have taxonomy term archive pages that list posts for a given term. The user can click on a post and view that post. Basic stuff. The problem is when a particular post belongs to more than one term. Say it belongs to term A and term B. They click on the post while browsing term B. The back, next, and previous links at the bottom should correspond to term B, the term that referred them to the post page.
How do I determine which term the user was browsing in order to set up the links properly?
(Yes, I have googled this quite a bit. I found another post from nearly 5 years ago with the exact same situation, but no answer. Maybe it's just not possible. Custom Taxonomies: Multiple Hierarchical Permailnks For A Single Post + Prev/Next Links )