Post editor, shortcodes and headings (1 post)

  1. davejuk
    Posted 3 years ago #


    I have created a custom shortcode within my theme's functions.php to allow a user to easily style some content. The functionality works fine but the editor seems to be screwing things up.

    It inserts <p> tags randomly and if I put [myshortcode] followed immediately by some text that I make a heading, it makes the shortcode part of that heading too.

    I know the editor has thought it knows best for years and this has never been addressed but is there a plugin or something that makes it behave a bit more intelligently?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.