Hi,
Your solution didn't work the way i'd like it to.
I want to keep the paragraphs which are created by the user.
wpautop is no good either as that removes all paragraphs.
Basically, i only want markup that the user has entered, including paragraphs, to be output.
This is my problem;
What i want is this:
HTML Code:
[accordion]
[accordion_item]
<p>Paragraph</p>
[/accordion_item]
[accordion_item]
<p>Paragraph</p>
[/accordion_item]
[/accordion]
But instead i get this:
HTML Code:
<p>[accordion]<br />
[accordion_item]</p>
<p>Paragraph</p>
<p>[/accordion_item]<br />
[accordion_item]</p>
<p>Paragraph</p>
<p>[/accordion_item]<br />
[/accordion]</p>
I'm not sure whether adding some preg_replace to the shortcode would be beneficial as not every user will format like i did above.
Any tips?
Cheers
Bookmarks