my certs
// WP_Query arguments $args = array( 'post_type' => array( 'pod-certs' ), 'meta_query' => array( array( 'key' => 'cert-stu', 'value' => 'current', 'type' => 'NUMERIC', ), ), ); // The Query $mycerts = new WP_Query( $args ); // The Loop if ( $mycerts->have_posts() ) { while ( $mycerts->have_posts() ) { $mycerts->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();