The Top Posts & Pages Widget displays your sites most popular posts & pages according to the WordPress.com stats plugin. The Jetpack plugin is required to use this plugin.
The Top Posts & Pages widget found on wordpress.com inspired this plugin, but this plugin allows more fine-tuning of what type of posts to show.
This plugin is fully localized and a POT file is included. If you would like to help translate this plugin, please contact me.
For support, please contact me in the WordPress Forums, if you find a bug or have a feature request, please create a ticket on the plugins Github Issues page.
Download
Latest version: Download Top Posts & Pages Widget v0.5 [zip]
Installation
As with most WordPress plugins, there is two ways of installing this plugin.
Primary Option
- Go to your WordPress Dashboard and login as an Admin
- From your Dashboard go to
Pluginssection on the left hand side and selectAdd New. - Search for
Top Posts & Pages Widget - Click the
Install Nowlink and follow the instructions.
Backup Option
- Download the latest version from the download page (http://wordpress.org/extend/plugins/top-posts-pages-widget/)
- Extract the zip file and copy the folder “top-posts-pages-widget” into the “wp-content/plugins/” directory in your WordPress installation.
- Activate the plugin from your Dashboard by going to Plugins -> Installed page.
Screen Shots
-
The widgets options in the dashboard.
Changelog
Version 0.5
- Correct bug in show pages not being able to be turned off.
Version 0.4
- Add ‘Show Home Page?’ support to plugin
Version 0.3
- Rework the post_id setup to better display itemes.
Version 0.2
- Corrected ‘Number of posts to show’, to now show the correct number of posts.
- Added wp_cache support.
Version 0.1
- First Release – Everything’s new


On the Top Posts widget, is it possible to flag certain posts to NOT appear in the listing?
Like maybe listing the id nbr or partial quote from the post’s title?
Like in my case, look how different my listing would be if I could exempt posts with “Mummers” in the title.
I see what you mean.
Not with the current version, but i can look into maybe allowing you to enter a list of post ID’s that wont show up on the front page.
Guess what? With a matter of a few days the Top Posts were back to normal. That subject, the Mummers Parade, is a big thing on one day a year. New Years day. So it is that around the first of the year those posts get hammered. I was concerned that it would have a lasting effect on the widget’s output but now I see it isn’t much of an issue for me any more.
Is it possible to filter pages? The home page we use on the site where I installed your widget is not the WP home page. I am wondering if there is a way I could keep it out of the list.
Thanks
Excellent widget by the way!
Not at this time, but the your not the only one looking for this feature, so I don’t think it’s far off. So the question now is, how to do it? Currently I was thinking of just having a text box that will allow you to enter post ID’s you wish to filter out from showing.
Thanks Matt, I’ll wait for the next V to roll out. And thanks for being a WP developer, it’s a great community.
Love the way this widget works. Is there any way to add thumbnails to the post listing?
No, not at this time.
What is the PHP code to embed this into my static homepage file?
Greg,
You should be able to grab lines 57 to 86 of the plugin and drop them into your theme. You will need to add the variables back in, or at least remove the “if” statements in the center of the code block.
I have never tested this setup so there may be odd output.
Let me know how it goes.
-Matt