Подобным способом вывести можно. Взяла код с вывода новостей.
<?php
$args=array(
'post_type' => 'shop_order',
'posts_per_page' => -1,
);
$query = new WP_Query( $args );
global $wp_query;
//$wp_query = $query;
while ( $query->have_posts() ) {
$query->the_post();
?>
<div class="col-md-3 centerA">
<a href="<?php the_permalink();?>" class="pac-item">
<span class="content">
<span class="img">
<img alt="" src="<?php the_post_thumbnail_url() ?>"> </span>
<p class="title"><?php the_title();?></p>
</span>
</a>
</div>
<?php
}
?>