this is front end viewI want to trim the words of post content that's why I used wp_trim words. But when I include a video in post content then it shows the video link and trimmed text in the frontend. I want to show the video not the video link trimmed text in the frontend. To solve the problem what can be used instead of wp_trim_words?
here is my code below
<div class="post-body">
<?php echo wp_trim_words( get_the_content(), 25, ''); ?>
<p>
<a href="<?php the_permalink(); ?>" class="btn btn-color btn-
sm">Read More</a>
</p>