wp-posts-to-posts icon indicating copy to clipboard operation
wp-posts-to-posts copied to clipboard

connected meta won't accept nested name for array

Open Pollux321 opened this issue 6 years ago • 0 comments

I need to query by two different connected meta values and then orderby one. In order to do that I need to give specific names to the nested queries which works regularly with meta_query but won't in this instance.

So in it's basic form with using orderby, this does not work

` 'connected_meta' => array( 'relation' => 'AND', 'level_meta' => array( 'key' => 'level', 'value' => '2', 'compare' => '=', 'type' => 'numeric', ), 'position_meta' => array( 'key' => 'list_position', 'value' => '1', 'compare' => '=', 'type' => 'numeric', ), ),

It does however work if I remove the array names.`

Pollux321 avatar Feb 08 '19 07:02 Pollux321