< ?php // WP_Query arguments $args = array ( 'post_type' => 'projects', ); // The Query $query = new WP_Query( $args ); // The Loop if ( $query->have_posts() ) { while ( $query->have_posts() ) { // PROJECT $query->the_post(); ?>

< ?php the_title(); ?>

< ?php the_field('description'); ?>
< ?php } } else { ?>

There are no posts or pages here

< ?php } // Restore original Post Data wp_reset_postdata(); // The Content echo apply_filters( 'the_content', get_the_content() ); ?>