I have a Wordpress site which pulls the text out of the posts and displays them using
<div class="col-md-12">
<p>
<?php
echo preg_replace('/(<img [^>]*>)/', '', get_the_content());
?>
</p>
</div>
however this wraps everything in one p tag (despite having multiple paragraphs in the post) How can I put the < p > tags back on each paragraph in the post