Вы должны включить запрос, созданный вами в цикл.
<?php
// The Query
$the_query = new WP_Query( $args );
// The Loop
if ( $the_query->have_posts() ) {
echo '<ul>';
while ( $the_query->have_posts() ) {
$the_query->the_post();
echo '<li>' . get_the_title() . '</li>';
}
echo '</ul>';
/* Restore original Post Data */
wp_reset_postdata();
} else {
// no posts found
} ?>
Здесь понятно $the_query->have_posts()
Ссылка на класс / WP-запрос - # Использование
Что касается вашего кода:
<div class="container">
<div class="row responsive">
<div class="col-md-9 col-sm-12 col-xs-12 content main-container">
<?php
$wp_query = new WP_Query( array(
'post_type' => 'podcast',
'posts_per_page' => 12,
) );
?>
<?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
<?php echo get_post_field('post_content', $post->ID); ?>
<?php the_content();
wp_link_pages(); ?>
<div class="podcast">
<div class="podcast-image">
<a href="<?php echo get_post_meta($post->ID, 'podcast_website', true); ?>" target="_blank" rel="noopener noreferrer"><img title="<?php the_title(); ?>" src="<?php echo get_post_meta($post->ID, 'podcast_image', true); ?>" alt="<?php the_title(); ?>" /></a>
<div class="podcast-text">
<h4><?php the_title(); ?></h4>
<h6><a title="Listen" href="<?php echo get_post_meta($post->ID, 'podcast_listen', true); ?>" target="_blank" rel="noopener noreferrer">Listen</a></h6>
</div><!--podcast-text-->
</div><!--podcast-image-->
</div><!--podcast-->
<?php endwhile; ?>
</div>