How to list most liked posts via WP_Query

Nathan's Avatar


24 Apr, 2011 07:04 PM

Would you know what parameter I would put into a WP_Query() if I'm trying to create a loop from your I Like This plugin?

I want to be able to show more than just the title of the post, such as the_content, etc.


  1. 1 Posted by Nathan on 25 Apr, 2011 03:07 PM

    Nathan's Avatar

    Figured this out:

    <?php $popular = new WP_Query( array ( 'orderby' => 'meta_value', 'meta_key' => '_liked' ) ); ?>

  2. 2 Posted by Jenny on 20 Jun, 2011 03:16 PM

    Jenny's Avatar

    I wonder how you would do this with thumbnails?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

24 Feb, 2016 05:49 PM
30 Nov, 2013 03:31 PM
30 Nov, 2013 03:10 PM
30 Nov, 2013 11:55 AM
30 Nov, 2013 11:24 AM

Recent Articles