Home › Forums › Bug Reports › Wrapping shortcodes with paragraph tags › Reply To: Wrapping shortcodes with paragraph tags
Hi @elliot,
The big issue with all the screenshots above was happening before WP 4.3 and ACF 5.3.0. I noticed the editor toggle bug after updating to WP 4.3, but that got fixed with the ACF 5.3.0 update.
I ran the same three tests from earlier after updating everything, and though the code in the ACF editor no longer changes, empty paragraphs still get rendered to the page. Putting the shortcodes and paragraphs on their own lines like in my first example renders empty paragraphs before and after my content. Putting everything inline (2nd test) still renders an empty paragraph after my content. The third test with hard returns and no paragraph tags in the editor at all puts a line break at the beginning, my first block of content without any wrapping tags, an empty paragraph tag, then my second block of content in paragraph tags – http://grab.by/JNuS.
Thanks for the idea @jonathan. I’ll consider that, but there are other shortcodes in this plugin that are very useful like tabbed content and accordions/spoilers.
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.