// WP_Query arguments $args = array( 'post_type' => array( 'post' ), 'post_status' => array( 'publish' ), 'order' => 'DESC', 'orderby' => 'none', 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'dfas_dsfsd', 'value' => 'sds_dvs', 'compare' => '=', 'type' => 'NUMERIC', ), array( 'key' => 'ac_sd', 'value' => 'adcas_sdasc', 'compare' => '=', 'type' => 'NUMERIC', ), ), ); // The Query $wp_query = new WP_Query( $args ); // The Loop if ( $wp_query->have_posts() ) { while ( $wp_query->have_posts() ) { $wp_query->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();