I have investigated this problem and recognized that it is not the TinyMCE fault, but the issue is caused by the the hook function wpautop
instead. And tags are wrapped just before post is being displayed.
So in order to fix this issue just remove the hook function like that.
remove_filter( 'the_content', 'wpautop' );
This could be done for example in your functions.php
file.
Related Posts:
- Can I remove the Rich Text box editor for a specific post?
- Disable HTML (Text) Tab in Post Editor
- Tiny MCE-modifications (plugins) stopped working in WordPress 5.6
- Trigger a custom function when option are saved in admin area
- Remove heading tags on line break
- Solution to render Shortcodes in Admin Editor
- Issues with title-tag and document_title_parts
- How do I get the current edit page ID in the admin?
- Import WordPress XML File from Within Functions.php
- Define custom Page Template without its own .php file
- Does hooking into the same action multiple times drain memory?
- How to influence the information displayed on widget inside wp-admin
- Extract image from content and set it as the featured image
- Modify Admin Bar Link
- Is there a hook or function I can use to display all theme files being used on a current page?
- Issue with get_theme_mod returning a blank value instead of the saved value
- TinyMCE custom styles remove class when switching styles
- How to remove row-actions from pages table?
- Is it possible to remove the main rich Text box editor?
- Add action hook conditionally – only when home.php in use
- Show modified time if post is actually modified
- why doesnt is_home() work in functions.php
- Is there a hook to put stylesheet and/or JS inside iframes (thickbox or tinyMCE) in admin area
- Add admin bar link to edit author
- How to create thumbnails for PDF uploads?
- Implementing DNS Prefetching with WordPress
- Help me to understand wp_header() and wp_footer() functions
- How can I tell if I’m on a login page? [duplicate]
- In WooCommerce I need to modify the thankyou.php page [closed]
- How can I add an extra WooCommerce hook
- Why get_header() or get_footer() does not run twice if called in the same php file?
- TinyMCE custom stylesheets for different post types
- Replacing select2 in admin backend for all selects
- Remove Page Title from Static Frontpage
- echo or print_r in an admin function
- How to override WordPress registration and insert an auto-generated username?
- Set default options for inserting media
- Change parent theme file function in child themes functions.php
- VERY new to coding – keep breaking site trying to add to functions.php
- Adding extra SVGs to TwentyNineteen child theme using class TwentyNineteen_SVG_Icons
- How to hook into the quick edit action?
- gform_after_submission content appears immediately after , not in post body [closed]
- How do I change parameters without changing the core
- Is it possible to be more page/post specific with admin_enqueue_script?
- WooCommerce add_action hook results in 500 error
- Issue adding text after short description on product pages Woocommerce [closed]
- Customize “the_posts_pagination” and put list instead div
- How to add a column to the Trash page?
- How to test for Super Admin
- Increment price for Woocommerce Minicart [closed]
- how to change link of some wordpress pages
- Gravity Forms field entries into wp_query loop [closed]
- Post thumbnail relative link and HTML modify
- Proper way of using functions in action hook?
- How to preserve edits to Name or Slug of term when using wp_update_term on save?
- wpautop – disable tags, keep tags
- Accepted arguments value in hook functions
- Get current page_id before loop, in functions.php
- How to select a page within admin?
- Change Admin Bar “Visit Site” URL
- How to properly add function called by action-hooked function to functions.php?
- Which action hook to use for function?
- Change size and crop medium_large images
- Gravity Forms – Using a Form to Pre-populate A Gravity Form [closed]
- Running a script before absolutely everything
- Inserting a functions output after the content
- How to display post content instead of excerpt
- Add function to every post?
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘greenday_head’ not found or invalid function name
- Modify a function without editing template
- Don’t delete a page if it holds users
- Problem only while using require_once() within functions.php
- Passing values from a widget to a function within a plugin
- How to Display Frontend CSS for Administrator only
- Which action does wp_update_user triggers?
- Publish/Update post is changing image links from file url to post url
- Hard-coding custom menu elements for menu manager
- How to make custom column Admin>Users sortable?
- How can I get my Script to work on the Login page?
- Execute a ultimate member action when user role is updated
- Add other social networks to TwentyNineteen_SVG_Icons class in child theme?
- Move ‘current-menu-item’ class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen
- How to use wp_trash_post (or wp_delete_post) for deleting a (or all) post(s) from custom post type?
- Force to use STRONG users password and implement rule to prevent REUSE [closed]
- What did I do wrong in my functions code, that will not change the “Get New Password” text to “Send It”?
- Insert image in WordPress with HTML5 tag and caption function
- Replace a menu with widget or a custom template file programmatically
- Footer disappears when using the_content ( )
- Adding a colorbutton in tinymce dialog with current api
- Get User Login Data (date, time… )
- WordPress functions.php – Execute plugin specific user online
- Registration Hooks don’t appear to be working
- jQuery does not work
- Why does re-using this function not work? [closed]
- Javascript function not working when placed in Text Block
- Pass parameter to hooked function using custom page template
- Override the WordPress core function wp_referer_field
- How to return hook data when multiple parameters are present?
- Hook into a function without a hook?
- What is the text that appears beside the page titles in the list of pages in the WP admin?