All I use is remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' );
and that stops WordPress from creating any extra markup. Are you copying and pasting your code from an external editor?
Related Posts:
- How to add “Insert/Edit link” button in custom popup tinymce window?
- How to disable TinyMCE from removing span tags
- 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
- WordPress 3.2 has broken my TinyMCE code
- wp_editor disable after reaching character count limit
- Add unique class or ID information to tinyMCE
- Is it possible to create nested lists in the WYSIWYG editor?
- Add a button to tinyMCE editor on Custom Post Type
- TinyMCE Anchor Button not showing
- Is there a way to prevent the Editor from modifying my HTML
- HTML5, WordPress and Tiny MCE issue – wrapping anchor tag around div results in funky output
- Apply custom style to single word in WordPress
- How to keep a textarea and stop tinymce?
- TinyMCE Editor Set Default Tab
- Registering custom TinyMCE buttons, for admin area, to work with custom instances of wp_editor
- Adding TinyMCE custom buttons when using teeny_mce_before_init
- TinyMCE – Show Advanced Options (2nd Row) By Default
- Disabling TinyMCE keyboard shortcuts altogether
- Disable TinyMCE autoformatting
- TinyMCE strips line breaks on mceAddControl
- Count Words using tinymce in the front-end
- TinyMCE – Add class to OL – selector doesn’t seem to get parent OL,UL, just LI’s (4.6.3)
- tinyMCE.activeEditor = null WP editor loaded in ‘Text’ mode?
- Should the WP post editor B (bold) button be inserting a tag instead of in HTML5?
- TinyMCE Keyup Function
- TinyMCE Editor removing and and putting instead
- Insert text a cursor position in to TinyMCE text editor
- Hide TinyMCE controls in TinyMCE 4 (WordPress 3.9)
- 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
- TinyMce in WordPress – Getting the “fullscreen” button to stay on the right when customising button layout
- Add TinyMCE editor to windowManager textbox
- unwanted and tags in text editor
- WordPress editor strips out anchor tags when they appear on their own line
- wp_editor on input changes content
- Sortable WYSIWYG editor
- Limit Block format tags in WordPress wp_editor
- Add table button in editor without Plugin
- Custom settings page TinyMce: no formatting when echoing value of editor
- How to get line breaks to translate to paragraphs?
- How to reset ‘Advance’ tab on table property?
- Add drop down in wordpress tiny mce editor pop up
- Localize variables with TinyMCE script
- Prevent the Editor From Moving My
- TinyMCE Advanced list type drop-down
- Shift-Enter in tinyMCE (wp 3.3.1) not working
- editor text cut off when using 2 spaces (after periods)
- TInyMCE object Tag stripped
- Advanced tinyMCE insert link error [closed]
- Is it possible to disable the image alignment options in the post editor?
- Adding custom styles to elements, without creating new elements
- Keyup events in tinymce editor not working
- Tiny MCE doesn’t look anything like my blog
- Removing tags around tags
- TinyMCE – no auto formatting using the_editor()?
- How to force insertion in editor
- Embed iFrame in WordPress 3.0.1
- TinyMCE not loading in IE8
- Sanitizing textarea for wp_insert_post with TinyMCE enabled or disabled
- Visual Editor is blank – 404 for plugin js
- Getting shortcode attribute values and shortcode content with JavaScript regex
- Allowing style tag in TinyMCE editor
- TinyMCE: Move buttons from 2nd row to top row
- remove WYSIWYG editor but keep media button
- TinyMCE doesn’t work correctly in the Media Modal Window
- Best Browser for Editing Posts
- WordPress Tiny MCE won’t accept line breaks
- wp_tiny_mce function not found
- TinyMCE strips off the href tag inside span, if i change from text to visual
- clasic editor – article categories customization?
- Replace text by icon in TinyMCE toolbar
- tinymce and responsive line-breaks (short words after a period)
- TinyMCE Advanced Link Class List on the main editor
- TinyMCE function causes issue in AVADA theme
- Changing code with ( ) when author updates their post (TinyMCE)
- WordPress Editor without buttons
- How do I externalize JQuery from my Tinymce Modal Dialog’s html and Enqueue the JS File to see JQuery
- Adding microdata using Structured Data Markup Helper HTML
- How to modify VisualComposer’s TinyMCE editor only for a specific shortcode
- `tinyMCE is not defined` after migrating site to server
- WordPress adding extra html coding to my data on saving
- wp_editor Too Tall when Content is Loaded
- Tinymce doesnt appear
- mce_external_languages: how does it really work?
- TinyMCE HTML Encode Backslash
- tinymce modal and I18n strings methods
- Revealing ‘code’ hidden button in TinyMCE4 and WordPress 3.9.x
- Edit body image after insertion in 3.9.1
- WordPress WYSIWYG editor on demand, responsive
- Using TinyMCE fiddle for node filter to add id attribute to anchors
- Multiple TinyMCEs breaking Distraction Free Writing
- prevent caching during tinymce custom button development
- WordPress removes paragraphs. How to disable this behavior?
- WordPress and TinyMCE Advanced: Failed to load javascript
- WPAlchemy – Multiple TinyMCE editor blank (can’t add text)
- Add custom classes to TinyMCE generated markup
- wp_insert_post() dont post content like i need it :(