User Page Course Brandia
// WP_Query arguments $args = array( 'post_type' => array( 'course' ), 'post_status' => array( 'publish' ), ); // The Query $brandia_query = new WP_Query( $args ); // The Loop if ( $brandia_query->have_posts() ) { while ( $brandia_query->have_posts() ) { $brandia_query->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();