Wp Loop Custom Post Type

$loop = new WP_Query(
        'post_type' => 'yourposttypehere' // This is the name of your post type - change this as required,
        'posts_per_page' => 50 // This is the amount of posts per page you want to show
while ( $loop->have_posts() ) : $loop->the_post();
// The content you want to loop goes in here:

<div class="col-sm-4">
My column content

<?php endwhile;

Leave a Comment