I'm working on a wordpress website. I would like to know how to add a new div id or class in the_content loop for posts. That is, I don't want to add any html in the post edit area of the backend; what I want is to actually create a new div or class in the post, so that I have an img and then the text wrapped within a div.
In my posts I need to wrap the text paragraphs in a div, like so:
<div class="entry-content">
<p><....img...></p>
<div class="text">
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
</div>
</div>
The div "text" is what I need to include. Could someone help me with this? I imagine I have to add something in the loop in function.php
thanks!