Query page with categories
// WP_Query arguments $args = array( 'order' => 'ASC', 'orderby' => 'id', 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'page_category', 'terms' => 'services', 'field' => 'term_id', ), ), ); // The Query $page_query = new WP_Query( $args ); // The Loop if ( $page_query->have_posts() ) { while ( $page_query->have_posts() ) { $page_query->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();