This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Infinite next and previous post looping in WordPress | |
* | |
* This will stay in same Custom Taxonomy Term. Also NEXT and PREVIOUS | |
* are switched to give the impression of "Going Forard and Back" | |
*/ | |
if( get_adjacent_post(true, '', false, 'CUSTOM_TAX') ) { | |
next_post_link( '%link', 'PREVIOUS', TRUE, ' ', 'CUSTOM_TAX' ); |