Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connected meta won't accept nested name for array #567

Open
Pollux321 opened this issue Feb 8, 2019 · 0 comments
Open

connected meta won't accept nested name for array #567

Pollux321 opened this issue Feb 8, 2019 · 0 comments

Comments

@Pollux321
Copy link

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.`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant