Skip to content

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

Open

Description

@Pollux321

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions