Add Links to Previous and Next Single Custom Post Type Entries In Same Taxonomy Term

This code enables you to dynamically add previous & next entry inks to entries in the same taxonomy term only.

Next and previous Links in same taxonomy term

You can use this code with any custom post type in any Genesis child theme and output the next and previous links in any Genesis hook position.

This code will NOT link entries for different taxonomy terms together as seen in the following demo video.

Demo Video #

Shows the entry title linked for posts in the same CPT taxonomy term together.

You can also swap out the title and link text like next and previous post.

Installation Steps #

There’s only 1 step :

Copy & paste the PHP code to the end of your child themes functions.php file.

Download Folder

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.