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.

How to build a post and comment editing form in a page?

To edit is a bit harder then just creating, but not that hard first you only display the edit link to the author so you add something like this to your loop: global $current_user; get_currentuserinfo(); while (have_posts()) : the_post(); //regular loop stuff //and check if the post author is the current user if ($post->post_author = … Read more

Is there a way to stop WP editor deleting

I would suggest a shortcode: function gcse_wpse_143459($atts,$content) { return ‘<gcse:searchbox-only></gcse:searchbox-only>’; } add_shortcode(‘gcse’,’gcse_wpse_143459′); Then use [gcse] instead of trying to paste in an oddball html-ish tag.

TinyMCE Autoresize

Here’s a solution. There’s a slight problem as it does not recognize when images are added to the editor. 1: Create a folder with the name tinymce-autoresize in the plugins folder. 2. Create a file in tinymce-autoresize named tinymce_autoresize.php with this content: function intialize_autoresize_plugin() { // Check user permission if ( ! current_user_can(‘edit_posts’) && ! … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)