Support » Fixing WordPress » Stop WP from auto inserting tags

  • WordPress keeps auto inserting a
    tag after an anchor link in the HTML editor, and it is driving me nuts. How do I get it to stop?


    <h2>Custom Event</h2>
    <a name="custom"></a>


Viewing 3 replies - 1 through 3 (of 3 total)
  • Anyone? Bueller?

    edit functions.php, add this:

    remove_filter(‘the_content’, ‘wpautop’);

    Try this plugin WP BR Tags. This will disable wpautop() from running.

    WordPress’s built-in post/text editor (TinyMCE), executes a back-end filtration process which removes empty tags, and
    tags from the post, when switching from the “Visual” to “HTML” tab in the editor in WordPress or vice-versa.

    WP BR Tags Allows you to insert [Short-Code] instead of <html> codes, the result is TinyMCE won’t mess with your code, and You get to have Line Breaks where you want them!

    I hope this helps,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stop WP from auto inserting tags’ is closed to new replies.