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.
Latest version: Download Top Posts & Pages Widget v0.5 [zip]
As with most WordPress plugins, there is two ways of installing this plugin.
- Go to your WordPress Dashboard and login as an Admin
- From your Dashboard go to
Pluginssection on the left hand side and select
- Search for
Top Posts & Pages Widget
- Click the
Install Nowlink and follow the instructions.
- Download the latest version from the download page (https://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.
- Correct bug in show pages not being able to be turned off.
- Add ‘Show Home Page?’ support to plugin
- Rework the post_id setup to better display itemes.
- Corrected ‘Number of posts to show’, to now show the correct number of posts.
- Added wp_cache support.
- 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.
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?
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.
Top Posts & Pages Widget worked fine on my blog http://www.mijamedia.com/ until two days ago when it show wrong url on the sidebar. Here is my link http://www.mijamedia.com/salam-takziah-anak-rini-af-meninggal-dunia/ but Top Posts & Pages Widget show this link http://www.mijamedia.com/2012/08/18/salam-takziah-anak-rini-af-meninggal-dunia/ on the side bar. Pls notice the extra 2012/08/18 link put by this widget. pls help me as i like this widget very much. tqvm.
I’m not seeing that right now on you site. The plugin doesn’t modify the URL of your links, only displays what the Jetpack Stats plugin provides it. Im guessing the Stats system had a issue with the URL structure for a short time.
Have you ever seen your plugin pull in spam URL’s? http://bit.ly/RTnqU4
Middle column is the plugin and 4 of the 5 are spam.
Links from the plugin are directing to other sites… I have the plugin at the bottom of my page called “most popular”.
I’ve been using the WordPress.com Popular Posts plugin recently until the counts went screwy and the widget disappeared. 🙁 I liked that plugin (and this one) because they use WordPress.com Stats (Jetpack) for page view counts which are already present on my site. Any chance you can incorporate some of that widget’s features into this one? I’d love to be able to exclude certain post IDs, choose the minimum view count for posts to be listed, and have more control over the output format. Just to name a few. Thanks!
I just checked the links to my posts created by your widget. ALL OF THE links generated using this plugin were redirects to sites other than mine.
There is something seriously fishy here.
I have deactivated this plugin.
I’m seeing the same issues with the plugin directing to other sites! Happened sometime this evening.
Also seeing the plug-in no longer work. Links are either going to the same page that the user is viewing (if they are on the home page it just sends them to the home page) or it sends them to some third party website. Had to deactivate plug-in out of concern for my site’s readers and the integrity of the site itself. Checked the files via FTP and nothing has been updated to the plug-in files so not sure what the sudden change is from.
Hmmm, I’m able see it doing it this on your site. It seems to work for some, but not most right now.
Was it working correctly at one point then stopped? Do the ‘top posts’ link to the correct post on your Admin side (in the stats plugin)?
It stopped working at some point during the day on October 12th for me. The top posts in my stats plugin do show up correctly on the admin side.
All the links take you back to the page you are currently on and not the post that you are trying to go to.
http://www.stuffistolefromtheinternet.com is the site where the plugin is located.
I left a link over on WordPress dotorg repository. There is an issue where popular links are being hijacked by spammers & displayed by the widget see http://wordpress.org/support/topic/link-hijacking?replies=1
Like the others commenting here – there is some kind of reverse seo intercept going on here.
This makes a lot of sense. The Top Posts & Pages Widget grabs the URLs from the stats plugin. So if it’s getting bad/spamy links, it will display them.
Links to my “Most Popular” posts on http://www.jambonairobi.co.ke/ also got hijacked. I don’t know how it was done. For now I’ve deactivated this plugin. I hope someone finds the loophole and seals it soon.
The stats plugin should not have any spam links in there for starters. What is happening is that someone ( we don’t know who) has an alias table of the top pages & posts – they then do some kind of lookup & add their spam links so that when you hover over the “Top pages & posts” list in the sidebar you can see the underlying links have been hijacked. I have a copy of the list that has been output but I can’t see that either stats plugin or top posts plugin has been altered. For now have removed this plugin from 2 sites until a fix can be found.
This plugin is redirecting to spam links as of an update?
As far as I can tell the spam links are coming from the jetpack stats feed that this plugin imports it’s data from. At this time I do not have a fix for this issue.
Matt, would it be possible to check the URL returned from jetpack and see if it matches the domain of the site? If it doesn’t match then don’t display that top post.
Or, since the title of the post is correct, it’s just the url that’s wrong, could you search for that post to get the correct url based upon the title?
i wondered if there is a way to edit the thumbnail size with this widget?
No, there is no way, this widget dose not use thumbnails.
I don’t like the images WordPress selected to represent my top posts & pages. Is there a way for me pick one within that post? Kind of like when I share an online article with multiple images, I get to pick one? Thanks!
I just started using this plugin. I am have been happy with it. However, I do have one question. On my site, some have multiple photos per post. In some cases it will pick up the collage picture instead of my main photo. Is there a way to choose which photo it chooses or to be sure that the collage is not featured since the size seems to impede the view?
Am loving this plug-in! Thank you.
I, too, would very much like to employ an option that excludes specific pages. Any news/ updates on that idea? I see it’s been around a while.