Support

Account

Home Forums General Issues Meta query for post object? Reply To: Meta query for post object?

  • Oh so you Authors is a repeater and in that you have a multiple select post object that is People? If so try this:

    $images_query = new WP_Query([
        'posts_per_page' => -1,
        'post_type' => 'images',
        'meta_query' => [
            [
                'key' => 'authors_%_people',
                'compare' => 'LIKE'
                'value' => '"'.85.'"',
            ],
        ],
    ]);