You can remove the wp-autop function which WordPress uses to format the output of the WYSIWYG editor. It will stop tinymce from adding additional p tags, but will require you to add correct formatting (because you’re removing the wp-autop the output won’t be altered. This if you use the visual editor and it doesn’t convert the visual input to valid HTML tinymce will no longer attempt to correct it).
If you still want to try, here is the code to add to your functions.php file:
<?php remove_filter ('the_content', 'wpautop'); ?>
Related Posts:
- How do I include a TinyMCE editor in the frontend?
- Remove HTML editor and visual/HTML tabs from TinyMCE
- Stop editor from removing tags and replacing them with nbsp
- Possible to stop WordPress from adding p1, p2… classes to p tags in TinyMCE?
- Custom Tiny MCE button to bring up a custom php popup
- When switching from html to visual editor the tag gets corrupted
- Add unique class or ID information to tinyMCE
- How can I stop TinyMCE from converting my HTML entities to characters?
- TinyMCE Anchor Button not showing
- How to keep non-breaking spaces in the visual editor?
- Is there a way to prevent the Editor from modifying my HTML
- Remove “Are You Sure” dialogue when leaving editor
- Creating a custom MCE view for your shortcodes [closed]
- Apply custom style to single word in WordPress
- How to customize the symbols that appear in the Visual Editor insert custom character
- Add Shortcode inline inside Gutenberg block
- How to make WordPress and TinyMCE accept tags wrapping block-level elements as allowed in HTML5?
- TinyMCE editor – new lines not rendered on front end
- onClick inside post_content does not appear in post tinymce editor
- How to get WP editors tinyMCE instances
- Disable TinyMCE autoformatting
- Visual Editor freezing on text highlight since 4.3
- Remove ‘Visual’ tab from TinyMCE editor
- tinyMCE.activeEditor = null WP editor loaded in ‘Text’ mode?
- Customising the WordPress TinyMce editor and it’s buttons
- Keep pasted pre formatted code as it is -with tabs- in visual editor
- How do i disable/disallow and tags in TinyMCE?
- Text cut off after the character 𪇆 in TinyMCE
- Insert text a cursor position in to TinyMCE text editor
- Using main style.css with add_editor_style
- Change Default Font Size and Remove Unwanted Font Sizes in TinyMCE
- How can I control the HTML output of my post?
- Access tinymce from thickbox
- How can I troubleshoot why TinyMCE won’t load custom plugins in the visual editor?
- TinyMCE Editor as component in Gutenberg Block
- wpeditor issue – shows both mode and not able to focus/edit during visual mode
- wp_editor on input changes content
- Set tinymce direction to rtl
- Add a select a class dropdown in tinymce
- WordPress & TinyMCE: Failed to load
- How do I add a TinyMCE row that all users can see, instead of just admins?
- How to disable formatting
- Our shortcode dropdown box in Tinymce is not working in WordPress 3.9?
- How to get line breaks to translate to paragraphs?
- How to add button in TinyMCE TEENY mode?
- TinyMCE Editor change underline button behavior – u tag instead of span text-decoration underline
- Localize variables with TinyMCE script
- Shift-Enter in tinyMCE (wp 3.3.1) not working
- TInyMCE object Tag stripped
- WordPress Tinymce editor broken and nothing seems to fix it :(
- Visual editor not showing all table rows
- Disable TinyMCE Table formatting width/height
- Adding custom styles to elements, without creating new elements
- customize tiny MCE blockqute
- allowing all HTML tags in tinymce editor
- Adding custom block formats to TinyMCE. Everything works until JavaScript error when applying the format
- tiny_mce_before_init is not trigger
- Save WYSIWYG editor plugin settings, only works after second save
- Adding CSS to admin TinyMCE editor for custom button
- Front-end image upload from TinyME [closed]
- Embed iFrame in WordPress 3.0.1
- How can a TinyMCE modal return formatted/visual text?
- How to apply a custom skin to WP_Editor / TinyMCE?
- Why exactly does WordPress use p tags, not divs?
- How to edit blockquote image
- TinyMCE: Move buttons from 2nd row to top row
- Change the background of the TinyMCE editor with available WP arguments
- When I write posts I usually have to use non breaking space element in order to keep margins in between the sentences. why?
- TinyMCE doesn’t work correctly in the Media Modal Window
- Add custom value for link_class_list for the classic editor
- How to apply padding to TinyMCE editor?
- Wordpres Tinymce custom button (Gavick guide)
- Loading a self-hosted custom @font-face into TinyMCE dropdowns (Classic Editor) via ‘tiny_mce_before_init’ filter
- TinyMCE is inactive after installation
- WordPress, tinymce, how get the link text from dialog?
- tinymce and responsive line-breaks (short words after a period)
- How to set custom TinyMCE format style as default?
- Did Gutenberg block editor change the html in post content during import?
- Client on iPad accidentally adding tag to posts while writing
- Add custom TinyMCE 4 Button: Is it mandatory to have one JS per button?
- Nested ordered list in tinymce
- Prevent Black Studio TinyMCE from adding tags when switching from Visual to HTML mode
- Visual Editor not working properly
- wp_editor Too Tall when Content is Loaded
- TinyMCE HTML Encode Backslash
- Inline Editing with wp_editor and tinymce (problem with textarea)
- Revealing ‘code’ hidden button in TinyMCE4 and WordPress 3.9.x
- TinyMCE 4.0: specifying buttons to display [duplicate]
- regEx wp core file
- Adding New Row of Custom TinyMCE
- Using TinyMCE fiddle for node filter to add id attribute to anchors
- WYSIWYG with HTML source?
- How do I separate my theme’s styles from editor styles?
- Adding to he format dropdown menu tinyMCE in WordPress
- WordPress and TinyMCE Advanced: Failed to load javascript
- Is there an alternative way to upload html without using TinyMCE?
- Add new MCE button for toggle specific cell background color
- add button to tinymce
- install tinymce plugin [closed]
- How to create custom toggle button in tinymce?