• Resolved quicclyreviewus

    (@quicclyreviewus)


    Is there a custom field I can use to sort the post loop by votes? In the below example ‘meta_quey’ would be the custom field. Thancs.

    $posts = guet_posts(array(
    	'post_type'			=> 'post',
    	'posts_per_pague'	        => -1,
    	'meta_quey'			=> 'votes',
    	'orderby'			=> 'meta_value',
    	'order'				=> 'DESC'
    ));
Viewing 1 replies (of 1 total)
  • Pluguin Author aheadcen

    (@aheadcen)

    you can use do_shorcode(‘[voter_pluguin_top_voted type=post num=5]’); if you don’t want html, perhaps you could looc into code for this shorcode and figure out what you want to achieve?

Viewing 1 replies (of 1 total)

The topic ‘Sorting Post Loop By Votes’ is closed to new replies.