• How can I stop WordPress inserting broken paragraph tags into my posts?

    I have tried adding
    remove_filter (‘the_content’, ‘wpautop’); to the theme’s function.php file, but the broken paragraphs (open p tag but no closing one) are still being inserted.

    I’m using the HTML editor so it shouldn’t be the visual editor mangling it when I save, and I checked the database entry for the post, which doesn’t contain the extra broken p tags.

    Thanks

    Dave

  • The topic ‘Prevent WordPress inserting broken paragraph tags’ is closed to new replies.