For link post formats to appear in my archive.php I'm using the following code:
<a href="<?php echo wp_trim_words( get_the_content(), 100 ); ?>"> <?php the_content(); ?> </a>
Of course, this creates a validation error due to a
<p> being inside an
<a>. I'm seeking a solution to fix this validation error.
This is the most intuitive way I can dream up for easy link post formats (of course, I'm open to suggestions).