WP_Meta_Query Generator April 10, 2017 Public Matthew Dalton Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone MetaTestQuery $meta_query = array( array( 'key' => 'type', 'value' => 'image', 'compare' => '=', 'type' => 'CHAR', ), );