I want to order a WP_User_Query by a meta value. The meta key is a multi-select field, and the value is saved as an array.
When I do a print_r of get_user_meta($user_id,'committee',true)
this is what I get:
Array ( [0] => Restoration )
Or
Array ( [0] => Historian [1] => Conservation )
How can I order alphabetically by this value when it is an array? Doing a normal orderby like this does not work:
'meta_key' => 'committee',
'orderby' => 'meta_value',
'order' => 'ASC'
When I do an export of all user meta, I see that the values are stored as a serialized array in the database.
Is it possible?