Skip to content

Instantly share code, notes, and snippets.

@hellofromtonya
Created July 10, 2016 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellofromtonya/baf7706793ba1788cb8d8d7d0b7d6c3e to your computer and use it in GitHub Desktop.
Save hellofromtonya/baf7706793ba1788cb8d8d7d0b7d6c3e to your computer and use it in GitHub Desktop.
Two ways to turn on the Prev & Next links in Genesis.
//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