WP_Meta_Query Generator February 22, 2017 Public Alex Spataru Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone Old id matches $meta_query = array( 'relation' => 'AND', array( 'key' => 'old_id', 'value' => '1151', 'compare' => '=', ), );