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?
- The topic ‘Post editor, shortcodes and headings’ is closed to new replies.