Add filter menu to admin list of posts (of custom type) to filter posts by custom field values July 10, 2022 by Tarik Billa Just add: $query->query_vars['meta_compare'] = 'LIKE';