Last Viewed Posts by WPBeginner
This shows your site's visitors a personalized list of posts and pages they have recently viewed.
Consider an alternative
Last Viewed Posts by WPBeginner shows warning signs in 2026 — compare the alternatives below before installing. It runs on 400+ sites, is rated 2.3/5 and was last updated 2 years ago, and scores 29/100 on our health check.
- Small user base (400+ active installs)
- Low rating so far — 2.3/5 from only 3 reviews
- No update in over a year
- Only tested up to WordPress 6.7 (latest is 7.1)
Daily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Last Viewed Posts by WPBegi… stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| last viewed posts | #5 |
| recently viewed posts | #11 |
| visited posts | #30 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 2.3 from 3 reviews
About Last Viewed Posts by WPBeginner
From the official readme · v1.0.2Description
Installing this will allow you to use a widget or template tag to show your site’s visitors a personalized list of posts and pages they have viewed.
The list of posts is saved in each visitor’s web browser, so even if you get millions of visitors a month it won’t affect the performance of your website.
Note: It doesn’t store a global list of recently viewed posts by all users. Nothing is stored in your site’s database. Every visitor has a custom lists of posts and pages they have viewed.
If JavaScript is disabled or no single post has been clicked, no output will be displayed.
The plugin comes with a widget and a template tag.
This plugin has been adopted and maintained by WPBeginner
What’s Next?
To learn more about WordPress, you can visit WPBeginner for tutorials on topics like:
…and many more WordPress tutorials.
If you like our Last Viewed Posts plugin, then consider checking out our other projects:
- OptinMonster – Get More Email Subscribers with the most popular conversion optimization plugin for WordPress.
- WPForms – #1 drag & drop online form builder for WordPress (trusted by 4 million sites).
- MonsterInsights – See the Stats that Matter and Grow Your Business with Confidence. Best Google Analytics Plugin for WordPress.
- SeedProd – Create beautiful landing pages with our powerful drag & drop landing page builder.
- WP Mail SMTP – Improve email deliverability for your contact form with the most popular SMTP plugin for WordPress.
- RafflePress – Best WordPress giveaway and contest plugin to grow traffic and social followers.
- Smash Balloon – #1 social feeds plugin for WordPress – display social media content in WordPress without code.
- AIOSEO – the original WordPress SEO plugin to help you rank higher in search results (trusted by over 2 million sites).
- PushEngage – Connect with visitors after they leave your website with the leading web push notification plugin.
- TrustPulse – Add real-time social proof notifications to boost your store conversions by up to 15%.
Visit WPBeginner to learn from our WordPress Tutorials and find out about other best WordPress plugins.
Installation
Viewed posts are always tracked as long as the plugin is active and the visitor has enabled JavaScript and local storage.
- Install Last Viewed Posts by uploading the
last-viewed-postsdirectory to the/wp-content/plugins/directory. (See instructions on how to install a WordPress plugin.) - Activate Last Viewed Posts through the
Pluginsmenu in WordPress.
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 outside the loop, e.g. sidebar.php :
<?php if (function_exists('zg_recently_viewed')): ?>
<h2>Last viewed posts</h2>
<?php zg_recently_viewed(); ?>
<?php endif; ?>
Changelog
Maintenance release please upgrade.
1.0.2
- Remove the legacy cookie based code.
- Test on WordPress 6.7.1.
1.0.1
- Fix for legacy widget settings.
1.0.0
- Complete rewrite to use JavaScript rather than cookies to store custom posts.
- Updated list of supported WordPress versions.
- Improved performance for sites with a large number of visitors.
0.7.3
- Updated Readme.txt.
- Checked compatibility with WordPress 5.1.1.
- Miscellaneous updates.
0.7.2
- Plugin maintenance update.
0.7.1
- Post/Page ID values in cookie are sanitized for output. Upgrade is recommend for more security.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
FAQ
Last Viewed Posts by WPBeginner: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Last Viewed Posts by WPBeginner free?
Yes. Last Viewed Posts by WPBeginner is free to download and use from the official WordPress.org plugin directory.
Is Last Viewed Posts by WPBeginner safe to use in 2026?
Last Viewed Posts by WPBeginner shows warning signs in 2026 — compare the alternatives below before installing. It runs on 400+ sites, is rated 2.3/5 and was last updated 2 years ago, and scores 29/100 on our health check.
How many websites use Last Viewed Posts by WPBeginner?
Last Viewed Posts by WPBeginner is active on 400+ WordPress websites and has been downloaded 24,403 times since it launched in December 2007. It was downloaded 339 times in the last 30 days.
Does Last Viewed Posts by WPBeginner work with WordPress 7.1?
Last Viewed Posts by WPBeginner is officially tested up to WordPress 6.7.12, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Last Viewed Posts by WPBeginner need?
Last Viewed Posts by WPBeginner requires PHP 5.6 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Last Viewed Posts by WPBeginner last updated?
The latest version, 1.0.2, was released on December 9, 2024 (2 years ago).
Who makes Last Viewed Posts by WPBeginner?
Last Viewed Posts by WPBeginner is developed and maintained by jottlieb.
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
