Make the Status, Visibility, or Date fields opened by default in the Publish box

This jQuery code seems to work, when added via the admin_footer hook. #submitdiv = the whole Publish metabox .misc-pub-section = each UI section (except the Publish and Save sections) .hide-if-js = the fields that are hidden by default $(‘#submitdiv .misc-pub-section’) .has(“#post-status-display, #timestamp”) .find(‘.hide-if-js’) .toggle(); That will unhide the Status dropdown and the Date picker.

Category’s Description field as editor remove tag

How are you outputting the category description? You might need to use something like apply_filters(‘the_content’, category_description( $category_id )); or wpautop(category_description( $category_id )); to have paragraphs in the output. Edit: Adding what you had in JSFiddle – note where $term->description is, I wrap it in wpautop. See if that works. If not, try apply_filters(‘the_content’, $term->description) instead: … Read more

Customize Editor Styles

@dalbeab already answered your question, but thought I would point out a way to add horizontal rule to your editor if you wish. Within functions.php, you can add this: // add horizontal rule button function enable_more_buttons($buttons) { $buttons[] = ‘hr’; return $buttons; } add_filter(‘mce_buttons’, ‘enable_more_buttons’); Then you will have a TinyMCE button that looks like … Read more

Make Post Editor Select Number of Columns To 1 By Default

Ok, so this is how I did it. This hook into the admin head, find the screen options part and set the default checked radio button to 1, which mean full screen. Just found the answer from here and give it a little modification: add_action( ‘admin_head’, ‘wpse1152474_post_editor_columns’); function wpse1152474_post_editor_columns() { global $pagenow, $typenow; if ($pagenow … Read more

Bulk edit contents of pages

For any other readers I’d like to add in advance that this only really makes sense if you are kind of creating drafts or templates or whatever you want to call it that will be changed later on. Otherwise you’ll at least deal with SEO penalties due to duplicate content. Unfortunately this functionality isn’t part … Read more

How to set default editor tab

It’s easier then you thought! Just add this code to the functions.php file in your theme. function prefix_set_default_editor() { return ‘text’; } add_filter( ‘wp_default_editor’, ‘prefix_set_default_editor’ );

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