Post Navigation (Target adjacent posts)

Using the Post Navigation element or any {{dc:post:permalink post="prev"}} which has options for “current, prev, next, parent or specific” is there a way natively to get adjacent posts?

We have a single layout page that has {{dc:post:permalink post="prev"}} and {{dc:post:permalink post="next"}} and it works fine except we want it to be based off a taxonomy not just the date for all the posts.

So the CPT podcasts with taxonomy series if the viewer is in my first series they will go prev/next though that series only.

currently they would potentially see all podcasts and would cycle through my first series, my second series, etc.

Hello @designerken,

Thanks for posting in! Regretfully, the Post navigation uses the standard WordPress post navigation based on the published dates and NOT on the same category. You would need an alternative method to be able to accomplish what you have in mind. Check out this article instead: https://www.wpbeginner.com/wp-tutorials/how-to-add-next-previous-links-in-wordpress-ultimate-guide/

This thread is added as a feature request.

Best Regards.

1 Like

@ruenel

That’s what I figured, but I wanted to make sure. I will work out my own code. Thanks for adding this as a feature request, I think it would be a good one to have.

You are most welcome @designerken

+1 from me!

Hello @JvP,

We will also add your vote to the feature request thread.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.