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. Lorenzo Avatar

    Great plugin but I can only see the ranking of the las five posts… and I have more than 200 shared on de social networks. Are something wrong?

  2. Lorenzo Avatar

    The problem has been solved. 😉

    Just one suggestion: Hide/show posts by categories.

  3. Lorenzo Avatar

    One more suggestion: Show/hide the excerpt under the link.

  4. sam Avatar
    sam

    This blog is very interesting. But if you want to extract the herbal aroma and flavor molecules from the similar ingredients you may use volcano vaporizer . This device has a digital and analog temperature control and two valves options by which it fills the balloon.

  5. Francis Avatar

    From my site everything is seeing well, but after a week ago, all number of share are stop countering. May I know why and how to solve it?

  6. new penny auction site Avatar

    Very much interesting blog i must say, helped me a lot solving my assignment as well…:)

  7. thomas Avatar
    thomas

    plugin on:
    Total query time: 0,35153s for 588 queries.
    Total num_query time: 4,765 for 600 num_queries.

    plugin off:
    Total query time: 0,13558s for 100 queries.
    Total num_query time: 4,117 for 102 num_queries.

    so 600(!) queries with plugin and 100 without the plugin? pleeeaaasse fix! that costs 2 seconds before page renders.

  8. beats by dre uk Avatar

    so 600(!) queries with plugin and 100 without the plugin? pleeeaaasse fix! that costs 2 seconds before page renders.

    1. led strips Avatar

      Is LinkedIn still supported in the current version?

  9. lili Avatar
    lili

    I’m still learning from you, but I’m trying to achieve my goals. I certainly enjoy reading all that is posted on your blog.Keep the information coming.

  10. famous brands store online Avatar

    Hi there, I just read your blog post regularly and I own a very similar one and I was just curious about if you have loads of spammy responses?
    If you are just how do you prevent it, any plugin or anything you can recommend?
    I get so much lately it’s driving me insane so any help is really appreciated.

  11. Louis vuitton outlet Avatar

    Hi Tom, congratulation for this plugin, it’s great. I have a question for you. Is there a way to display a specific post type in widget?

  12. Rob Maurizi Avatar

    Hey folks- Anyone know if I can access the most-shared data from within my theme without displaying the widget, etc? My client’s wireframes call for displaying the one most-shared post within a tabset on the homepage. I was going to take the most-shared post and then query for that post and display it as desired.

    I guess if I could customize this plugin a whole bunch to display this one post how creative wants it, that would do it as well.

    Thanks!
    -Rob

  13. metal roofing Avatar

    Hi Tom, congratulation for this plugin, it’s great. I have a question for you. Is there a way to display a specific post type in widget?

  14. Josko Avatar

    Hi, i have problem with showing data for facebook and twitter. Plugin shows me only number of G+ shares. I saw that few of you in comments have a same problem, so i’m wondering if someone found solution for this problem!

    Thanks

  15. Sneis Avatar

    Thank you for this interesting content!

  16. Edygar Avatar
    Edygar

    First of all, I’ve loved your plugin, there was 2 observations that concerns me:
    1 – Do you plain to implement translation support?
    2 – Facebook REST API has changed to deprecaded, do you will gonna update to Graph API? I’ve done my own change on msp-fetch.php:121 when works just fine for me.
    [code]
    $facebook_api_results = @file_get_contents(“https://api.facebook.com/method/fql.query?query=select total_count from link_stat where url=’”. urlencode(get_permalink()).”‘&format=json”);
    [/code]

  17. Facebook Gaming Developers Avatar

    Nice information, many thanks to the author. It is incomprehensible to me now, but in general, the usefulness and significance is overwhelming. Thanks again and good luck!

  18. thenorthfaceoutletberkeleys Avatar

    I found what I wanted in no time at all. Pretty awesome. Would appreciate it if you add forums or something, it would be a perfect way for your clients to interact. Great job
    Hello I am so delighted I located your website, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say nice one for a tremendous post and a all round entertaining website. Please do keep up the great work.
    Hello I am so thrilled I found your weblog,

    1. Display boxes Avatar

      Mills Display provide merchandising products, Visual merchandising, frame displays, point of sale, point of purchase displays, retail signage, retaildisplays and other displays item in Australia.
      Link – http://newgoogleadwords.info/story.php?title=point-of-sale-5

  19. faceoutletsberkeley Avatar

    I really found you by accident, while I was researching on Google for something else, Regardless I am here now and would just like to say thanks for a tremendous post and a all round enjoyable blog (I also love the theme/design), I don’t have time to go through it all at the moment but I have book-marked it and also added your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the excellent job.
    hello there and thank you in your information ?

  20. Facebook Gaming Developers Avatar

    Today, I am searching some WordPress plug-in for my new website. In my website there is a problem about sharing post on different platform then I read your post about sharing on different site which is so good for my wordpress site. I am here now and I really thankful for your wordpress plug-in post and enjoyable your blog. After one to two day I will contact you about this plugin and its cost and Until take care yourself.

Leave a Reply

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