I'm new to Wordpress so please bear with me.
Please check this link
The posts are currently sorted by date. But if you mouse over on
Latest Articles you see there are other options for sorting like
Most Liked etc.
What I'm trying to do is make
Most Liked the default sorting value instead of
I believe this could be done by modifying codes where the
wp_query args are setup
The php file which controls the panel has this code -
$args = array('posts_per_page' => $postsperpage);
I've tried modifying it with this -
$args = array('posts_per_page' => $postsperpage, 'orderby' => 'meta_value_num', 'meta_key' => IT_META_TOTAL_LIKES);
But it doesn't solve the purpose!
Can anyone tell me how do I do this?