quagliato
9/6/2013 - 8:42 PM

Iterate a specific post-type

Iterate a specific post-type

<?php 
    $query = new WP_Query(
      array(
        'post_type' => '<post-type-name>'
      )
    );
    if ($query->have_posts()) {
        while ($query->have_posts()) {
            $query->the_post();
            
        }   
    }   
?>