Most Shared Posts – WordPress Plugin

Most Share Posts

Screenshots of the Most Shared Posts plugin on various sites.

The Most Shared Posts plugin for WordPress allows you to display, as a widget, which of your blog posts have the most social shares and are proving to be your most popular content.

download button
Version 1.1.0 – 14th August 2011
hosted on wordpress.org

 

If you’d like to see this plugin in action, you can see it on this site, or you could check out Kate Morris’ SEO Blog or John Doherty’s SEO Blog. They both helped to test the initial version.

Features

If you have feature requests, bug reports or you just want to show me where you are using the plugin please post a comment below or drop me an email to [email protected].

  • Fetches Facebook Likes, Twitter Tweets and the new Google +1s.
  • Caches results to ensure good performance. Older posts are cached for longer.
  • Select which of the 3 social counts to include.
  • Select how many posts to display in the list, and an age cut-off.
  • For beginners, it is very easy to install with no necessary customisation.
  • For advanced users, there are various display options available.
  • Option to hide the counts and icons.
  • You can have multiple instances on the same page with different titles (e.g “Most Tweeted Posts” showing just the Tweet counts, or “Most Liked Posts” showing just the FB Likes counts etc.)

Installation

The steps to install ‘Most Shared Posts’ are quite simple:

  1. Upload `most-shared-posts` directory to the `/wp-content/plugins/` directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to the ‘Widgets’ page in the ‘Appearance’ section of WordPress.
  4. Now you can add the widget to different pages of your site. Recommended pages to add the widget: “Sidebar Index”, “Sidebar Single”, “Sidebar Category”.
  5. You can customise the plugin differently for each of these sections should you wish.
  6. NOTE: The plugin throttles how quickly it gathers the social data, to ensure it does not cause any slowness for your users. For small sites with less than 100 posts, this should typically be done in the first hour. For sites with other 2000 posts it could take a day or more.
  7. Now load a page on your blog which should show the widget. This will initiate the first data fetch.

Frequently Asked Questions

  1. Q: I just installed and refreshed the page, but my most shared posts are not at the top of the list?
    A: The plugin will take a little time to collect all the data about your posts. It does so in batches so as not to upset the social networks by requesting too much data at once. You should find that it’ll sort itself out and catch up quite quickly.
  2. Q: I just got tweeted but the count hasn’t updated! Why not?
    A: The results for each post are cached for varying lengths of time depending on the posts age. Very recent posts (less than 2 days old) are cached for an hour, and then older posts are cached for incrementally longer periods of time. Posts in the last month are cached for 12 hours, posts 1-6 months old are cached for 48 hours and older posts are cached for a week.
  3. Q: My older posts aren’t showing up…
    A: When you add an instance of the widget to a sidebar in the WordPress admin section, you can customise how far back you wish to look; the default is 2 years.
  4. Q: Where can I change how many posts are included in the list?
    A: When you add an instance of the widget to a sidebar in the WordPress admin section, you can customise how many posts to include; the default is 5.
  5. Q: I activated the plugin, but I don’t see it. 🙁
    A: This plugin is a widget, so after activating it you need to go to the Appearance->Widgets section of your WordPress settings and select which pages you’d like it to appear on.
  6. Q: Can I include the count inside a post or a page?
    A: Yes – there is now a shortcode option. The shortcode has a few options (all are optional):

    [most-shared-posts num_posts="5" max_month_age="24" title="Most Shared Posts"]
  7. Q: I have no shares. How depressing… help!
    A: Assuming you’re providing content worthy of being shared… Make sure you are including sharing buttons on your blog in a consistent fashion. I recommend adding them into your theme, or alternatively:

    • Alex Moss of Pleer has created some great social button plugins for Twitter, Facebook and Google+.
    • The AddThis plugin is very popular, and provides a variety of sharing buttons.
    • At sharethis.com, they provide a variety of sharing plugins.
    • The Sharedaddy plugin, part of Jetpack from WordPress.com, provides a range of social buttons.

Changelog

Version 1.0.0 – 4th August 2011

  • Initial Release

Version 1.0.1 – 5th August 2011

  • Update on the format of the API requests for added robustness.
  • Added link to the FAQ on plugin activation.

Version 1.1.0 – 14th August 2011

  • Can now view social stats in admin area (with or without an active widget).
  • Added a shortcode option to include within posts/pages.
  • Data now collected without an active widget.
  • Improved method for scheduling data collection.
  • Various code tidying and improvements.

Donate

Please consider a donation, or alternatively enabling the attribution link in the settings:

Donate Button

181 responses to “Most Shared Posts – WordPress Plugin”

  1. Chris Avatar

    Dude, rockin’ plugin! I’m with jnreyt, how do I go about adding another service, like Digg or Stumbleupon?

  2. Gem Avatar

    Hi Tom,

    I think you have made a wonderful plugin. 🙂

    However, I have some issues with Google Webmasters Tools which I have traced and seen that it was caused by your plugin. A line from Google Webmasters Tools:

    http://www.yournextshoes.com/2011/07/clemence-poesy-nina-ricci-black-platform-wedges/function.file-get-contents

    Clicking on that file shows 404 error.

    When I checked my web hosts’ error_log I saw the errors which came from your plugin.

    Line 1807: [13-Nov-2011 17:52:08] PHP Warning: file_get_contents(http://api.facebook.com/restserver.php?method=links.getStats&format=json&urls=http%3A%2F%2Fwww.yournextshoes.com%2F2011%2F11%2Fshop-neiman-marcus-call-sale-40%2F) [function.file-get-contents]: failed to open stream: Connection timed out in /home/ynextsho/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 121

    I have read through the installation instrucitons, FAQ, and the comments here. I hope the error was not caused by anything I’ve missed during setup.

    The errors aren’t visible for the visitor. All the errors are seen on the backend.

    In case you are interested where I’ve placed your plugin, it only shows on pages for now.
    http://www.yournextshoes.com/about/

    I hope you could look into this issue?

    Thank you and good day.

  3. Houston Home Security Avatar

    Well worth to read this article, thanks for sharing this information. With this article you offered me got a chance to know about this, anyway i say Great Article! I’m waiting for you next article about this interesting subject.

  4. radyo dinle Avatar

    Very interesting and insightful. Thanks for sharing it with us.

  5. Rob Cottingham Avatar

    Terrific plugin – I can’t wait to get it working. My main problem is that I’m running the Webcomic plugin, which uses a custom post type. Any chance you’re likely to support custom post types any time soon?

  6. Sandra Avatar

    Hi, a great plugin! But how long can it take to display the shares? I have installed 3 days ago – all that’s shown until now are 3 posts with a few google +1 shares – no facebook and no twitter yet. Is it possible that it’s still working? Or is something maybe going wrong?

  7. carsten Avatar

    Great plugin, but same problem here: the google+ counter works, but no counts (not even a zero) for the other ones. Could it be that a caching plugin of some sort is interfering?

    By the way, adding counts for linkedin would make this plugin even more complete 🙂

  8. Muhammad Raza Avatar

    does not work, i put the plugin into plugins folder, activated the plugin, and put the plugin into sidebar but many days spent it is not picking shared posts, which are shared into facebook and twitter.

    There is also one question regarding the plugin; on Facebook if I share a post with specific list of people (not public), would it be considered a share (means would it be listed into shared posts) or post will be considered shared if and only if it is public?

    1. Muhammad Raza Avatar
      Muhammad Raza

      working like a charm, private or public considered a share :); thanks for this wonderful plugin. Do you have plans for including other social media like Linkedin?

  9. Miguel Dey Avatar
    Miguel Dey

    Great plugin – I’ve been looking all over for something like this. I do have a suggestion though.
    Feature request: The option to display the post feature image beside the post title.

  10. John Avatar
    John

    Hello Tom, I recently installed this plugin on my website. It works fine initially, but as I’m writing this comment right now, I noticed my top 2 most shared posts have been removed from the list of most shared posts. I double-checked those 2 posts and saw they still have the same high number of shares, except they just don’t show up in the list. Do you know why this might be happening? Thanks.

  11. adam Avatar

    is there a way to customize the plugin to set a time period for tracking the likes or tweets? For example, if I wanted to run a contest to see which post got the most likes during a month or so?

    By the way, I really like what the plugin does already. It’s working great on my site.

    Thanks.

  12. Lucian Avatar

    Is LinkedIn still supported in the current version?

  13. Sandra Avatar

    Does not work ony ma blog!

  14. Sandra Avatar

    Does not work on my blog!

  15. Lojra Avatar

    Great Plugin, thank you 😉

  16. Funny pictures Avatar

    Very useful blogpost with a lot of useful tips about wordpress. There are a lot of plugins, but I think your article will help newbies understand more 🙂

  17. Bruno Avatar

    Well. Do you support this plugin? It does not work on my WordPress Installation.

  18. Bruno Avatar

    Please consider, that in some cases you have to copy a php.ini file in the directory WordPress is installed. The php.ini has to contain the lin “allow_url_fopen=on”. Otherwise the plugin won’t work.

  19. […] Most Shared Posts | Download Cost: free […]

Leave a Reply

Your email address will not be published. Required fields are marked *