WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Smarter Navigation

Generates more specific previous / next post links based on referrer.

  1. Unzip the archive and put the folder into your plugins folder (/wp-content/plugins/).
  2. Activate the plugin from the Plugins admin menu.

Basic usage

Go to your theme directory and open single.php.

Replace

previous_post_link(

with previous_post_smart(

and

next_post_link(

with next_post_smart(

Referrer link

If you also want to display a link back to the list of posts, add this line (also in single.php):

<?php referrer_link(); ?>

Posts with multiple categories

If you want for example to higlight the category that the user came from, you can use get_referrer_category() to retrieve the category object.

For further reference, all the template tags are located in smarter-navigation/template-tags.php.

Requires: 3.2 or higher
Compatible up to: 3.5.2
Last Updated: 2013-4-6
Downloads: 11,613

Ratings

4 stars
4.7 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,4,4
100,1,1 100,3,3
100,1,1
100,1,1 100,2,2
100,1,1
100,1,1
100,1,1 100,2,2 100,1,1
100,3,3 100,1,1
100,1,1