WordPress.org

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Last Viewed Posts

This plugin displays the posts (and pages - if you want) that have been recently viewed by the visitor (single view). Data is saved in cookie for eac

Viewed posts are always tracked as long as the plugin is active and the visitor has enabled the cookies.

Download and unzip the plugin file. Upload last_viewed_posts.php to your /wp-content/plugins/ directory. Go to the admin backend and activate the plugin.

To display the list, you can use the widget that comes with the plugin or use the following code and place it anywhere you want to, but outside the loop, e.g. sidebar.php :

Last viewed posts

The single template tag is shown below, but I recommend to use the code shown above. It prevents you from displaying a blank list if the visitor has cookies disabled or did not view any single post yet.

By default the cookie expires after 360 days, the number of entries that are displayed is 10 and pages are recognized.
To change these values, edit the last_viewed_posts.php between the equals sign and the semicolon:

$zg_cookie_expire = 360; // After how many days should the cookie expire? Default is 360.
$zg_number_of_posts = 10; // How many posts should be displayed in the list? Default is 10.
$zg_recognize_pages = true; // Should pages to be recognized and listed? Default is true.

Requires: 2.1 or higher
Compatible up to: 3.5.2
Last Updated: 2013-3-27
Active Installs: 2,000+

Ratings

5 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.

67,3,2
50,4,2
100,1,1
100,2,2
100,1,1
67,3,2