WP Facebook Like Posts Order

This plugin allows users to order posts by the total number of Facebook likes.

Author:Luca Martincigh (profile at wordpress.org)
WordPress version required:2.8.0
WordPress version tested:3.2.1
Plugin version:1.0
Added to WordPress repository:10-07-2011
Last updated:13-07-2011
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://www.lucamartincigh.com/wordpress-faceb...
Total downloads:3 330
Active installs:20+
plugin download
Click to start download

On WordPress you can order posts by date, title, random ecc. but imagine you set a Facebook Like button on your posts and you want them to be ordered by the total lkes number.

This plugin allows you to order WordPress posts by their Facebook Likes number.

Once installed the plugin, on every new entry you create, will be added a "facebook_likes" custom field.

When you call <?php the_content(); ?> function, the plugin checks the number of likes of the post and updates this number.

If you don't use <?php the_content(); ?> function, place this funcion inside your LOOP: <?php update_facebook_likes(); ?>

To list the posts ordered by facebook likes, your posts query (see the official reference) must be something like this: <?php query_posts('meta_key=facebook_likes&orderby=meta_value'); ?>