[Steunstichting] Cases
// WP_Query arguments $args = array( 'post_type' => array( 'case' ), ); // The Query $cases = new WP_Query( $args ); // The Loop if ( $cases->have_posts() ) { while ( $cases->have_posts() ) { $cases->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();