<div class="class1">
<ul>
<li>
<div class="class2">
<?php the_post_thumbnail( 'large') ?>
</div>
<div class="class3">
<a href="">category</a>
<h2><?php the_title(); ?></h2>
<p><?php echo wp_trim_words( get_the_content(), 70 ); ?> </p>
</div>
</li>
</ul>
</div>
The above is an excerpt that is kept on content-home.php
This is the correct version or correct coding practice →
<p><?php echo wp_trim_words( get_the_content(), 70 ); ?>
or this one w/o the <p></p>
tag →
<?php echo wp_trim_words( get_the_content(), 70 ); ?>