WordPress removing

tags?

Question

I’d already come across a case where WordPress added <p> tags. However now I’m dealing with the opposite situation. When I add [] shortcodes inside <p> tags WordPress automatically removes <p> tags.

<p>[anyshortcode]Hello World[/anyshortcode]</p>

Becomes:

Hello World

Adding dir=”ltr” to <p> tags seems to fix the issue, maybe there is a way to add it programatically to all <p> tags?

Any ideas on how to fix this?

0
, , Lisandro Vaccaro 10 years 2014-03-14T08:34:43-05:00 0 Answers 77 views 0

Leave an answer

Browse
Browse