You can add this code to your function.php file of your theme
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
or you can use this plugin for easier control
Related Posts:
- Creating a wp_editor instance with custom tinyMCE buttons
- How to add custom CSS (theme option) to TinyMCE?
- How to add “Insert/Edit link” button in custom popup tinymce window?
- How to disable TinyMCE from removing span tags
- Add popup window to TinyMCE buttons
- How to customize TinyMCE4 in WP 3.9 – the old way for styles and formats doesn’t work anymore
- TinyMCE editor is breaking my beautiful HTML
- Load wp_editor via ajax [duplicate]
- Why did multiple line breaks stop working in text editor?
- TinyMCE 4.x : How to customize toolbar on wp_editor()
- Replace Taxomony Description Field with Visual/WYSIWYG Editor
- How to replace the content of tinyMCE editor in both text and visual mode using jQuery?
- TinyMCE format dropdown no longer showing style previews
- Is it possible to re-use the image details popup?
- Cite-Tag for blockquotes
- Wait for Gutenberg or built something in ACF?
- Replicating the_editor (Media Bar, TinyMCE, Visual/HTML Tabs) functionality without a huge rewrite
- “wp_editor” not displaying TinyMCE correctly when square brackets used in name
- Using a dashicon for a custom button in TinyMCE?
- Pasting code into pre-formatted text in Visual Editor not working in 3.3.1
- Integrating inline tinymce editor in a component for a gutenberg block
- WordPress MultiSite Paste from Word Tool Does not work
- TinyMCE removes iframe attributes width and height
- Append Font Family in TinyMCE
- tinyMCE duplicates previous block element when pressing return (visual editor)
- WP 3.3 my rich text category editor toolbar is gone!
- WordPress visual editor broke due to non standard port?
- Add table controls with wp_editor minimal editor configuration (‘teeny’)
- Enable Visual Editor In Comments On CPT Edit Page
- TinyMCE is broken
- Added custom styles to Visual Editor. Classes are appended and not replaced as intended
- TinyMCE – Add button that changes direction of selected text
- Is there a way to remove the default css from TinyMCE?
- Preserving tabs and line breaks in when switching from HTML to Visual Editor
- TinyMCE Visual Blocks plugin set Show blocks option for all users
- Gutenberg; Rich Text/HTML for Metadata Textarea Control in Back End
- How to reset ‘Advance’ tab on table property?
- Add a TinyMCE Core Plugin Using tiny_mce_before_init
- Selectively remove empty line after line change
- Fontawesome icon vanishes in editor while switching text and visual mode
- wordpress qtranslate editor text is not working [closed]
- create a front end post page template withTinyMCE,
- editor text cut off when using 2 spaces (after periods)
- How does WordPress remember which editor is being used?
- Add buttons to the new TinyMCE WP Editor. Javascript API
- Advanced tinyMCE insert link error [closed]
- Is it possible to disable the image alignment options in the post editor?
- Open Insert/edit link popup
- How to dynamically generate wordpress editor on frontend?
- More than one TinyMCE (wp_editor) with different $settings[‘drag_drop_upload’] values breaks
- tinyMCE 4.0 custom button onclick no longer working
- How to add Listbox / Select dropdown for shortcodes in WP 3.9 beta2 using TinyMCE?
- Using spellchecker plugin in TinyMCE
- wp_editor not modify html tags of initial content
- Stop TinyMCE from deleting empty HTML tags
- Custom TinyMCE Editor Formats in Dropdown
- Why is the media upload button not in the main toolbar & can it be placed there instead?
- Can I disable `wp-tinymce.php` load as script?
- wp_editor – Media uploader button to tinymce
- Removing tags around tags
- Editor html formatting is different from view source
- WordPress no longer holding post formatting
- HTML formatting issues when switching between editor tabs
- Stop editor from adding “amp;” after every “&”
- TinyMCE not loading in IE8
- Visual composer causing conflict with TinyMCE [closed]
- Overriding TinyMCE buttons – Justify button shortcodes not working
- WP Editor: Keep Bold, Underline, etc. but ignore color
- TinyMCE 4 & wp_editor multiple editor issue
- TinyMCE Advances is removing blanks (” “)
- How to remove buttons from tinyMCE in wp_editor added via AJAX
- enable TinyMCE for comment forms
- TinyMCE – Insert media at the beginning of post
- Best Browser for Editing Posts
- TinyMCE invalid nested list markup
- Unable to save Theme Options when TinyMCE is enabled for the text area
- Adding a Media Button to the WordPress Content Editor
- Error in backend: Failed to load plugin: tabfocus from url
- How can I change TinyMCE’s default block format?
- Changing code with ( ) when author updates their post (TinyMCE)
- Adding a class to custom TinyMCE button using WPLinks dialog box
- Remove MS Word comments from pasted text
- How to force wp excerpt to use br tag?
- How to modify VisualComposer’s TinyMCE editor only for a specific shortcode
- How to have html in TinyMce “Text” tab properly indented and highlighted
- TinyMCE adds a after a HR
- How to remove “justifyfull” in TinyMCE
- TinyMCE errors after 3.7.1 to 3.9.1 upgrade
- Localize tinymce in WordPress 3.9?
- WordPress WYSIWYG editor on demand, responsive
- Get the More QuickTag button back
- Make videos output as iframes not links
- Preventing tinyMCE from auto formatting selected blocks of content
- How to insert image from link in TinyMCE
- Tinymce broken after update
- Problem with Line spacing in wysiwyg editor in WP 3.5.1
- get backend to front end
- wp_insert_post() dont post content like i need it :(
- Why did my get mangled, and how can I keep from happening again?
- WordPress Started Executing Code Inside PRE Tags Even They Are Properly Escaped