Developer WordPress Plugin: Raw HTML Shortcode WordPress Plugin—preserve raw HTML formatting in the classic editor
I've written a WordPress plugin which gives you a short code [raw]content[/raw] that exempts the enclosed content block from WordPress's wpautop() processing, so you can include raw <style>, <script>, or other html into posts in the code tab of the classic editor without WordPress breaking them by inserting paragraph or line break tags into the code.
If that's enough explanation for you, the plugin can be found on Github at https://github.com/kupietools/ktwp-wp-plugin-raw-html-shortcode.
The longwinded versionIn HTML5, it's acceptable to put [code]
...[/code] tags in page bodies. Even if it wasn't sometimes it's expedient in WordPress to include custom CSS or javascript in a single post. The correct WordPress way to do this is to enqueue CSS and javascript... but this requires writing PHP, and, if you ask me, is one of those case where the "correct" way of doing things doesn't…










Hello! Welcome to
BEST VIEWED WITH













