This code enables you to add next & previous links to single CPT’s in the same term.
Example : If you create a custom posy type named Portfolio and additionally create custom Portfolio taxonomy types named America, United Kingdom, Australia & Japan, the navigation will only link entries within each taxonomy type and exclude portfolio entries for other taxonomy types which you can view by watching the following demo video.
The video shows previous and next links added to portfolio taxonomy type entries for America, Australia and Japan.
You can use this code with custom taxonomy types and when using categories and tags with your CPT.
Register or login to access the code for members :