cpt-loop
// WP_Query arguments $args = array( 'post_type' => array( 'articles_posts' ), ); // The Query $digi_artcl = new WP_Query( $args ); // The Loop if ( $digi_artcl->have_posts() ) { while ( $digi_artcl->have_posts() ) { $digi_artcl->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();