Overview
The Code and Core Remove Empty P Tags is a powerful yet lightweight plugin that helps you eliminate unwanted spacing in your WordPress content. With version 2.0.0, we’ve introduced complete flexibility with two cleanup modes:
- Frontend Cleanup (Recommended): Automatically cleans content as it’s displayed on your site. This is non-destructive, meaning your database remains untouched while your visitors see perfectly clean content.
- Backend Cleanup (Editor-based): Adds a checkbox to your post/page editor. When checked, content is cleaned and saved directly to the database.
Key Features
The plugin provides flexible cleanup options with support for modern WordPress editors and content systems.
- Frontend & Backend ModesChoose between site-wide display cleanup or permanent database cleanup.
- Block Editor (Gutenberg) SupportFully compatible with the modern WordPress editor.
- Classic Editor SupportContinued support for the traditional TinyMCE editor.
- ACF SupportClean up content in Advanced Custom Fields (WYSIWYG and Textarea).
- Custom Post TypesEnable cleanup for any public post type on your site.
- Exclude Post IDsEasily skip cleanup on specific pages or posts.
- LightweightMinimal impact on site performance.
- Empty paragraph tags.
- Paragraphs containing only non-breaking spaces.
- Empty paragraphs with line breaks.
- Multiple consecutive line breaks (collapses them into one).
Plugin Cleanup vs Manual Cleanup
Compare how automated cleanup improves content formatting compared to manual editing.



