What happens is that TinyMCE converts every double line break in the HTML source to <p></p>
and vice versa. It will actually strip away any <p/>
you manually enter in the HTML source after you save, because when the post’s content is rendered, <p>
and </p>
will be added.
The auto-<p>
replacement only works when you’re rendering a post’s content with <?php the_content() ?>
, if you output $post->post_content
directly, it won’t go through the same formatting hooks and will look plain and without line breaks or paragraphs.
If what you want is lots of <br/>
tags in the rendered markup, you should probably find a better solution based on CSS and the use of the margin
or padding
CSS properties.
Related Posts:
- WordPress Admin Not Loading All Core Scripts
- Remove ‘Custom..’ option in tinyMCE colour swatch
- Add button in TinyMCE editor to insert text
- How to hide wordpress default description box?
- Why do I keep losing links when I switch to visual editor in WordPress
- ASCII to Unicode conversion and then save the data into database using WP post editor field
- Icons are missing from Visual Editor
- Adding custom classes to elements via the WYSIWYG
- Strange wp-admin problem for all users/adminstrators except the original one?
- Child theme loses wp-admin styling
- Custom column for changing post status via ajax
- Custom login redirects to wp-admin on wrong password
- How to search post by ID in wp-admin
- WordPress 4.8: Using multiple WYSIWYG-Editors with media inside of Widgets how to?
- Uploading Images in the Link Manager
- How can I make a Live Demo of my Premium Plugin? Are there security risks?
- Share same domain for wp-admin but for different website
- How to allow users login to WP from external domain and make REST requests
- Disable wp-admin console for subscribers
- How to add notification bubble for my custom admin menu page
- How to display the user that published a pending post?
- How to get the post editor and media library to respect HTTPS administration mode?
- Can I rename the wp-admin folder?
- What’s the purpose of admin canonical tag?
- How to show an error message after publishing a post?
- Set “Display name publicly as” to be usernames by default
- How to disable admin flyout menus?
- How can I set up multi language admin ui?
- How to display multiple custom columns in the wp-admin users.php?
- WordPress custom permalinks not working on OS X localhost
- How to Remove Checkbox for Excerpt Under Screen Options
- Change Dashboard url
- WordPress subdomain wp-admin redirects to main domain
- Block access to wp-admin
- Remove order field from Page Attributes box
- CDN + WP Admin Query – .htaccess redirection
- Users Unable to Access Dashboard/Posts/Pages
- Prevent /wp-admin/ from redirecting to homepage?
- How to reset display of WYSIWYG editor
- WordPress 3.2 Admin UI Guide
- https://mydomain/wp-admin redirects to wp-login.php?redirect_to=https%3A%2F%2Fmydomain%2Fwp-admin%2F&reauth=1
- Password reset link becomes invalid immediately [closed]
- WordPress and bbPress Login conflicts?
- Adding custom styles to dropdown in editor
- How can I use a variable to include a linked image?
- Add css code in admin_enqueue_scripts
- Why isn’t my email showing up as registered with WordPress anymore?
- Unable to locate WordPress Root directory
- redirect to a dedicated sign in page
- 404 redirect wp-login and wp-admin after changing login url [closed]
- Logout USER form backoffice after 30 minutes of inactivity [closed]
- More than one admin logged in?
- How do I let logged out users see the dashboard?
- Downgrade admin account by mistake
- Deploying WordPress for clients – what do they have access to?
- Removing Dashboard Menu Items Through The Database
- load-{$page hook} and returned parameter
- Can’t access wp-admin, redirects to http://%24domain/wp-admin/
- Can log as admin but dashboard missing [closed]
- Making Comments, a sub_menu in admin menu
- Without using wordpress cms Is it possible to signup from my html page
- How to allow WordPress updates to only one specific administrator?
- How to add custom CSS and JavaScript file for wp- admin dashboard (backend)
- GoDaddy hosting wp-admin problem
- Cannot change Connection Information in admin interface
- Add custom fields to a page template, admin side
- Error messages & can’t reach admin after upgrading to 3.4.1 WordPress
- WordPress blog clone.. wp-admin issue
- How to take the help button and link off the dashboard
- Newly created user role not displaying on users screen
- Could not override the url in wp-config file
- How do I fix wp-admin error when exporting reusable blocks?
- WordPress Migration Post Problems
- How to remove the color picker code from users-edit.php
- wp-config.php not affecting my site
- How to prevent spams from admin-ajax.php file?
- Can’t access WP-Admin via HTTPS
- wp-admin and wp-login.php not Accessible after Cloudflare
- Get rendered HTML of Page in Admin Area
- Having SSL enabled on admin, but disabled on post preview and live preview?
- Strange URLs admin area bug
- Cannot access my wordpress website
- Google flagged a wp-admin redirect as phishing
- Custom comment action
- Problem with admin columns
- Checkbox not showing as checked on UserProfile (even with checked=”checked”)
- Get URL of current featured image with JS in edit post view
- Added fields in quick edit screen need to update at the moment
- Custome column sort by date not title
- WordPress Admin: open popup window on a custom button
- Modify admin panel tab position
- No HTML/Visual mode option in admin panel (New Post)
- Removing Author name
- not able to add thumbnail custom field in dropdown
- No wp-admin, wp-config, or .htaccess folder/file
- Taking over a WordPress site
- WordPress blog fails to open
- wordpress admin is broken [closed]
- LinkControl not showing suggestions when used on admin page
- Https Website: CSS and JS files load in http and admin page does not load too