Not the function the_excerpt(), what to do?

Not the function the_excerpt(), what to do?

<?php if (have_posts()) { while (have_posts()) { the_post(); ?>
 <div class="contentItem">
 <a href="<?php the_permalink(); ?>" class="news__link"><?php the_title(); ?></a>
 <p class="news__date">Published: <?php the_date(); ?></p>
 <?php the_post_thumbnail( 'thambnail' ) ?>
 <div class="news__text">
 <?php the_excerpt(); ?>
</div>
</div>
 <?php } // end while ?>
 <?php the_posts_pagination(); ?>
 <?php } // end if ?>
June 3rd 19 at 19:14
1 answer
June 3rd 19 at 19:16
Solution
Maybe the logs have anything? Try echo get_the_excerpt();

Find more questions by tags WordPress