Created
July 10, 2016 17:53
-
-
Save hellofromtonya/baf7706793ba1788cb8d8d7d0b7d6c3e to your computer and use it in GitHub Desktop.
Two ways to turn on the Prev & Next links in Genesis.
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
//add_action( 'genesis_after_entry', 'genesis_prev_next_post_nav', 9 ); | |
add_action( 'genesis_before_while', 'genesis_sample_loop_setup' ); | |
/** | |
* Setup the loop. | |
* | |
* @since 1.0.0 | |
* | |
* @return void | |
*/ | |
function genesis_sample_loop_setup() { | |
if ( is_single() ) { | |
genesis_prev_next_post_nav(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment