Open posts in editor in the ‘Text’ mode by default

Add the following line to your theme’s functions.php: add_filter( ‘wp_default_editor’, create_function( ”, ‘return “html”;’ ) ); Use “html” to set the Text editor tab as default (as shown above), or “tinymce” to set the Visual editor tab as default.

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