Skip to content

Instantly share code, notes, and snippets.

@deckerweb
Created January 7, 2012 22:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deckerweb/1576203 to your computer and use it in GitHub Desktop.
Save deckerweb/1576203 to your computer and use it in GitHub Desktop.
Plugin: Genesis Single Post Navigation -- Customize parameters for "next post link" -- add this to functions.php of your child theme
<?php
add_filter( 'gspn_next_post_link', 'custom_gspn_next_link' );
/**
* Genesis Single Post Navigation: Add custom filters for "next post link"
*/
function custom_gspn_next_link() {
$args = array (
'format' => '%link', // Change link format (default: %link)
'link' => '&laquo;', // Change link string (default: &laquo;)
'in_same_cat' => FALSE, // Apply only to same category (default: FALSE)
'excluded_categories' => '' // Exclude categories (default: empty)
);
next_post_link( $args['format'], $args['link'], $args['in_same_cat'], $args['excluded_categories'] );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment