Home › Forums › Front-end Issues › Paragraph wrapped in empty tags › Reply To: Paragraph wrapped in empty tags
So it turns out I was calling the text as follows:
<p><?php echo $text; ?></p>
But because the WYSIWYG already includes p-tags, for some reason WordPress/ACF then decides to add empty p-tags before AND after the paragraph.
Anyway, I removed the p-tags from my code and now it’s working as intended 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.