Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
Plugin: WP Single Post Navigation -- Customize parameters for "previous post link" -- add this to functions.php of your theme or child theme
add_filter( 'wpspn_previous_post_link', 'custom_wpspn_previous_link' );
* WP Single Post Navigation: Add custom filters for "previous post link"
function custom_wpspn_previous_link() {
$args = array (
'format' => '%link', // Change link format
'link' => '&raquo;', // Change link string
'in_same_cat' => FALSE, // Apply only to same category (default: FALSE)
'excluded_categories' => '' // Exclude categories (default: empty)
previous_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.