How to disable Page Attributes dropdown in wp-admin

Removing support for page attributes will prevent that box from appearing… function remove_page_attribute_support() { remove_post_type_support(‘page’,’page-attributes’); } add_action( ‘init’, ‘remove_page_attribute_support’ ); … but I don’t know if you need attributes support or not. If you don’t that is the fix. If you do, you will need to remove the box as per @KrzysiekDrozdz’s answer, but to … Read more

Text cut off on save

Your browser doesn’t send the copied text UTF-8 encoded to the server. On the first character that isn’t UTF-8 compatible, in your example the apostrophe – ’ –, the stream to the data base is broken and not recovered. That’s a browser issue. If I had to guess – well, I have because you didn’t … Read more

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.