WP_Meta_Query Generator August 8, 2018 Public Patrick Coridan Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone all_specs $meta_query = array( array( 'key' => 'all_specs', 'value' => '$selected_spec', 'compare' => 'LIKE', ), );