I want to get record from wp_posts with multiple custom post and show in descending order by multiple meta value from wp_postmeta.meta_value.
Right now, I am using this query:
$args = array(
'numberposts' => -1,
'post_type' => $field_keyn,
'cat' => $fcat_list,
'post_status' => 'publish',
'relation' => 'OR',
);
// The Query
// print_r($args );
$my_query = new WP_Query($args);
if ($my_query->have_posts()) {
while ($my_query->have_posts()) :
$my_query->the_post();
?>