WP_Meta_Query Generator May 23, 2017 Public Agent Smith Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone Meta Query1 $meta_query = array( array( 'key' => 'custom_field1', 'type' => 'NUMERIC', ), );