Некорректный вывод get_the_excerpt()

Есть вывод анонса статей. На всем сайте корректно выводится. Но на странице кампании Лейки the_excerpt() выводит контент статьи Лейки.

Пробовал через get_the_excerpt(ID) - безрезультатно.

Наглядно можно посмотреть https://plusr.ru/campaign/ksyushe-makarovoy-iz-derevni-radovicy-t/

<?php
    $args = [
        'showposts' => 2,
        'ignore_sticky_posts' => 1,
        'orderby' => 'date',
        'order' => 'desc',
        'post_type' => 'post',
        'cat' => 850,
        'paged' => $paged,
    ];
    $articles = new WP_Query($args);
?>

<div class="col s12 m4 news_inner">

<?php if ($articles->have_posts()) : ?>
    <?php while ($articles->have_posts()) : $articles->the_post(); ?>

    <a href="<?php the_permalink() ?>"><?php the_post_thumbnail('thumb'); ?></a>
<?php

    
    echo '<div class="news2_date"><span></span><div>' . get_the_date('j F Y') . '</div><span></span></div>';
    the_title(  '<a class="news2_title" href="' . get_permalink() .'">', '</a>' );

    ?>

    <div class="news2_subtitle"><?php get_the_title();?></div>
    <div class="news2_introtext">
        <?php
            $post_id = get_the_ID(); 
            echo get_the_excerpt( $post_id );
        ?>
    </div>

    <div style="clear: both; height: 17px;"></div>
    
<?php
    endwhile;
    wp_reset_postdata();
?>
<?php endif; ?>

Ответы (0 шт):