seantrant
7/15/2016 - 4:43 PM

Custom Post Type Loop

Custom Post Type Loop

<?php 
	    //Define your custom post type name in the arguments
	    $args = array('post_type' => 'XXXX');      // XXXX = the name of the custom post type
	    //Define the loop based on arguments
	    $loop = new WP_Query( $args );
	    //Display the contents
	    while ( $loop->have_posts() ) : $loop->the_post();
	    ?>

<?php endwhile;?>