WordPress gives you multiple ways to order your posts. You can order your posts by date, random, or title. If you want your very top posts (based on Facebook likes) to show up first on your blog, you will have to do minor changes to your site’s code. WP Facebook Like Posts Order is a powerful WordPress plugin that simplifies this process for you.
Once you install Facebook Like Posts Order, the plugin will go through your content and find the stories that have gotten the most amount of votes from Facebook fans. It adds a “facebook_likes” custom field to your posts for sorting purposes. In order to update your Facebook likes per posts, you should call the
update_facebook_likes() function.Â To order your posts, just add the following to your function call:
If you want only your top articles based on Facebook likes to shows up at the top of your home page, this plugin is well worth checking out.