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
- How do I get the current edit page ID in the admin?
- Define custom Page Template without its own .php file
- Does hooking into the same action multiple times drain memory?
- Extract image from content and set it as the featured image
- 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?
- 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?
- echo or print_r in an admin function
- VERY new to coding – keep breaking site trying to add to functions.php
- How do I change parameters without changing the core
- Is it possible to be more page/post specific with admin_enqueue_script?
- 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]
- wpautop – disable tags, keep tags
- How to select a page within admin?
- Change Admin Bar “Visit Site” URL
- Gravity Forms – Using a Form to Pre-populate A Gravity Form [closed]
- Running a script before absolutely everything
- How to display post content instead of excerpt
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘greenday_head’ not found or invalid function name
- How to Display Frontend CSS for Administrator only
- Which action does wp_update_user triggers?
- 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?
- How to use wp_trash_post (or wp_delete_post) for deleting a (or all) post(s) from custom post type?
- What did I do wrong in my functions code, that will not change the “Get New Password” text to “Send It”?
- Adding a colorbutton in tinymce dialog with current api
- Javascript function not working when placed in Text Block
- Pass parameter to hooked function using custom page template
- Hook into a function without a hook?
- Is my code correct to enqueue CSS on a specific page?
- Can’t properly set the_title add_filter to show short_URL
- Control the srcset much more (not all sizes in it each time)
- Filter yoast canonical add_action priority [closed]
- How do I hook into the container of wp_nav_menu?
- Remove links from the_content when using filters wp_trim_excerpt
- Is there a way to prevent a function/method from being called outside a specific hook?
- Post editor is 89953px tall. How to fix?
- Function not working inside of a function in functions.php
- Adding code before post title with the_title produces weird results
- Add back in child theme what the parent theme removed with remove_action
- Writing a function to detect an event
- Where do I go to edit this area? [closed]
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- what is best way to keep track of changes made in wordpress website? [closed]
- Changing where my author box is printed
- Add Adsense code between job listings – wp job manager plugin
- Replace admin header logo with an image
- Creating a custom wordpress widget and stopping js from running twice(once in active widget once in widget selector)?
- Adding tables to the WordPress Editor
- How to place a div inside a function that creates a div
- Function to add custom HTML into head in custom post-type list page
- Filter for replacing the WP_query object for a given category
- Editor cannot access Theme Options
- Removing WPML Items From the WordPress Admin Bar
- WordPress comment processing . Default unapproved comments detection before posting
- Show metadata in users.php – wordpress
- How to display my comment count in the wordpress admin bar?
- Save_post – Warning: Cannot modify header information
- Populate acf-field, depending on block name
- How to use WP conditional tag in a functions.php with OCEANWP Theme?
- custom error message for empty username and password using authenticate filter not working
- Get post_author email for Zapier Integration
- How can I stop the hook from breaking the login/logout function?
- WordPress hooks to call a function inside a construct
- WordPress undefined function error on using add_action() in functions.php
- How to echo the translated custom field?
- Add functionality to post editor
- Quicktags external functions file
- Function the_content
- Edit TinyMCE Button Functionality
- save_post hook – headers already sent?
- Limit length of headline in Editor
- Add custom fields after post/page title
- Force resize for all video content
- Unhook the comment form in Buddypress
- Why wp_ajax hooks doesn’t work?
- Why functions metaboxes is causing White Screen in Admin [closed]
- image_size with respect to aspect ratios
- When the WP_EDITOR button is pressed, the user is prompted to select a photo from their device
- Get category of post inside save_post hook
- Create section wit form
- Log in and out using custom pages, no logout confirmation and redirects for logging in and out 2023
- Copy and Modified WooCommerce function is_coupon_valid [closed]