Support

Account

Home Forums Add-ons Options Page Query posts by options page custom field Reply To: Query posts by options page custom field

  • If I get what you’re trying to do correctly, I think that you’ll need to have the user field both the options page and the user page.

    Set the user select field on the options page to return ID. This will return an array of user ID values.

    Then change your meta query to

    
        'meta_query' => array(
            array(
                'key' => '',
                'value' => $ids,
                'compare' => 'IN'
            ),
        ),