Would you like to show your visitors the last blog posts that they viewed?
In this article, we’ll show you how to display the last visited posts to a user in WordPress.
Why Display Last Visited Posts in WordPress?
Visitors to your WordPress blog will often be looking for your latest posts. Making it easy to find fresh content will improve user experience and increase page views. That’s why we usually recommend that you display your recent posts and most popular posts.
However, your users may sometimes come back to your blog to revisit a post they have already read. Websites like Amazon realize this and show visitors recently viewed items to boost sales and increase user engagement.
You can do the same thing on your WordPress blog, helping your returning visitors to continue where they left off on their last visit.
Let’s have a look at how you can display a personalized list of the last posts that were visited by a user in WordPress.
How to Display Last Visited Posts in WordPress
After activating the plugin, go to Appearance » Widgets. You need to click the plus + icon at the top of the screen to add a new widget, and then search the list for ‘Last Viewed Posts’. After that, simply drag the ‘Last Viewed Posts Redo’ widget to your sidebar.
Once you click the ‘Update’ button at the top of the screen, you can visit your website to see the list of last visited posts. These will only be visible if you have viewed posts on your blog after installing the plugin.
The Last Viewed Posts plugin does not store the list of recently viewed posts for each user on your website. Instead, the list of posts is saved in each visitor’s web browser so it won’t affect the performance of your website.
If a user decides not to allow cookies from your blog, then the list of last visited posts will not be displayed.
We hope this tutorial helped you learn how to display last visited posts to a user in WordPress. You may also want to learn how to create an email newsletter the right way, or check out our list of must have plugins to grow your site.