Created
January 7, 2012 12:01
Revisions
-
deckerweb revised this gist
Apr 24, 2012 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ <?php add_filter( 'wpspn_next_post_link', 'custom_wpspn_next_link' ); /** * WP Single Post Navigation: Add custom filters for "next post link" -
deckerweb revised this gist
Jan 7, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function custom_wpspn_next_link() { 'format' => '%link', // Change link format 'link' => '«', // Change link string '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'] ); -
deckerweb created this gist
Jan 7, 2012 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ add_filter( 'wpspn_next_post_link', 'custom_wpspn_next_link' ); /** * WP Single Post Navigation: Add custom filters for "next post link" */ function custom_wpspn_next_link() { $args = array ( 'format' => '%link', // Change link format 'link' => '«', // Change link string 'in_same_cat' => FALSE, // Apply only to same category (default: FALSE) 'excluded_categories' => '' // Exclude categories (defaul: empty) ); next_post_link( $args['format'], $args['link'], $args['in_same_cat'], $args['excluded_categories'] ); }