The following query is returning blank with no errors and I'm not sure why.
Query Arguments:
$args = array(
'post_type' => 'games' ,
'posts_per_page'=> -1,
'meta_query' => array(
'relation' => 'and',
array(
'key' => 'custom_post_id',
'value' => get_the_id()
),
array(
'key' => 'second_post_id',
'value' => get_the_id()
)
),
'meta_key' => '_game_name',
'orderby' => 'meta_value_num',
'order' => 'ASC'
);
Why will this query not run?