function namefunctions(){
$args = array(
‘post_type’ => ‘CPT’,
‘posts_per_page’ => -1,
);
$recetax = new wp_query($args);
while ( $recetax->have_posts()): $recetax->the_post(); ?>
/* your content of ctp*/
<?php endwhile; wp_reset_query();
}