Вывожу анонсы постов в разделах записей таким образом:
<?php
$category = get_queried_object();
$query = new WP_Query(
array(
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => -1,
'cat' => $category->cat_ID
)
);
if ($query->have_posts()) {
?>
<div class="items">
<?php
while ($query->have_posts()) {
$query->the_post();
?>
<div class="item">
<a href="<?php the_permalink(); ?>"> <div class="itemtitle">
<?php the_title(); ?>
</div></a>
<div class="itemhead">
<article style="background-color: rgba(28,28,28,1);"><?php if(function_exists('the_views')) { the_views(); } ?></article>
<article style="background-color: #252525;">Видео</article>
<article style="background-color: rgba(28,28,28,1);"><?php
comments_popup_link( 'Нет комментариев', '1 комментарий', '- % комментариев ', 'comments-link', 'Обсуждение закрыто');
?></article>
<article style="background-color: #252525;"><?php echo do_shortcode( '[rvx-star-count]' ); ?></article>
</div>
<div class="itemscontentimg">
<article><?php the_post_thumbnail(array(200, 200)); ?></article><main><?php the_excerpt(); ?></main>
</div>
</div>
<?php
}
?>
</div>
<?php
}
?>
<?php wp_reset_postdata(); ?>
В случае, если вывожу <?php the_excerpt(); ?>, страница наглухо зависает.
В случае, если <?php echo get_the_excerpt(); ?>, такая же ситуация.