WP_Meta_Query Generator January 17, 2022 Public Malte Horstmann Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone unit_id $meta_query = array( array( 'key' => 'id', 'value' => ''unit_id'', 'compare' => '=', ), );