brian-espinosa
6/24/2015 - 5:13 AM

Loop custom post type

Loop custom post type

<?php $loop= new WP_Query( array( 'post_type'=> 'coach', 'posts_per_page' => -1 ) ); ?>
        <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
            Whatever you want to do in that loop
        <?php endwhile; wp_reset_query(); ?>