wpautop not working on wp_editor()
-
In WordPress 5.x, when I register post type with ‘show_in_rest’ => true,
then add a custom meta box with wp_editor().
the setting ‘wpautop’=> ‘false’ not working well.For example, When I add a new gallery and some text to this editor field, then switch to code editor mode. all of the text or gallery shortcodes will be wrapped by p tags.
How can I resolve it?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wpautop not working on wp_editor()’ is closed to new replies.