Reply To: Custom Query – how to use / to show different order?

Home Forums Pro Version Custom Query – how to use / to show different order? Reply To: Custom Query – how to use / to show different order?

#6405
Masonry Guy
Keymaster

Hi Snikay,

This is the code you need to set right ?

$query->set('meta_key', 'epicredrank');
$query->set('orderby', 'meta_value_num');
$query->set('order', 'DESC');

So please keep this in custom query field in your shortcode.
meta_key=epicredrank&orderbymeta_value_num&order=DESC

Hope this helps.