Why is WordPress WYSIWYMG and how do I make it WYSIWYG?

After you post your content, WordPress will pass the_content() function through a number of filtering function’s. There are four of them, wptexturize(), convert_smilies(), convert_chars(), and wpautop(). All of these are defined in wp-includes/formatting.php and are referenced in wp-includes/default-filters.php. To remove these filtering functions you can disable them by putting this in your functions.php theme file: … Read more

What’s the Best Way to Edit WordPress Files?

It really depends on what you’re trying to do. First of all, you should never edit core WordPress files. Any changes you make will be lost if and when you upgrade, so if you want to change functionality, use a plug-in. If you want to change the way your site displays, change the theme. In … Read more

Completely disable editor

Why not use custom post types and don’t add any support for the editor, that is afterall what they are for and the easiest way . The answer in this post covers how to do that, Hide content box with Custom Post Type? http://codex.wordpress.org/Function_Reference/register_post_type To remove that functionality for pages or posts (and custom types) … Read more

Disable escaping html

I just installed SyntaxHighlighter Evolved, and while testing on an existing post I was dismayed to find that all the quotes ” had been converted to " (the single quotes were fine). I was using the HTML editor. In case you are also in this position, I found that it’s just the post preview that … Read more

post editor changes & to &

I dont know what you are doing with your shortcode but it is good practice to serialize and parse data so that it displays beautifully. Since you need to look for & and not for & just use $data = str_replace(“&”, “&”, $data). Also you could look in the php manual for urldecode() and urlencode(). … Read more

Re Order Editor to be after meta box [duplicate]

This will allow the post editor to be moved like the other sortable post boxes. function move_posteditor( $hook ) { if ( $hook == ‘post.php’ OR $hook == ‘post-new.php’ ) { wp_enqueue_script( ‘jquery’ ); add_action(‘admin_print_footer_scripts’, ‘move_posteditor_scripts’); } } add_action( ‘admin_enqueue_scripts’, ‘move_posteditor’, 10, 1 ); function move_posteditor_scripts() { ?> <script type=”text/javascript”> jQuery(‘#postdiv, #postdivrich’).prependTo(‘#your_meta_box_id .inside’ ); </script> … Read more

Disable the Code View in the content editor?

You can do it in JavaScript, though the downside is you have to do it block by block. You’ll need webpack set up with lodash installed: function removeHtmlEditing( settings, name ) { return lodash.assign( {}, settings, { supports: lodash.assign( {}, settings.supports, { html: false } ), } ); } wp.hooks.addFilter( ‘blocks.registerBlockType’, ‘core/paragraph’, removeHtmlEditing ); There’s … Read more

WordPress 4.6 link edit dialog is too rudimentary

To disable the inline link tool and revert it back to a pop-up screen instead, do the following: In your child theme directory, add the following to your function.php: add_filter( ‘mce_external_plugins’, ‘wpse_236590_link_editor’ ); function wpse_236590_link_editor( $plugins ) { $plugins[‘full_link_dialog’] = plugins_url( ‘js/’, __FILE__ ) . ‘editor.js’; return $plugins; } Next create a directory inside your … Read more