Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Plugin: WP Single Post Navigation -- Customize parameters for "next post link" -- add this to functions.php of your theme or child theme

View gist:1574576
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<?php
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' => '&laquo;', // 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'] );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.