• I’ve searched almost everywher e(here in Google) and I’ve found several ways to remove <p> tags created by WordPress, but I don’t want to remove all of them, actually. What I want to do is to remove/no-build them where add_filter(‘the_content’,…) is used. Even better, when is used by a specific plugin.

    If I disable wpautop (providing that I know how to do it properly), I would remove or replace all <p> tags and I don’t want to do that.

    This plug in uses a shortcode that is properly translated, but WP wraps around the HTML this annoying <p> that makes my HTML not valid: inside the <p> there is a main <div>, but a <div> inside a paragraph is not valid.

    Any solution?

    Thanks,
    Andrea

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Remove wrapping <p> from shortcodes only.’ is closed to new replies.