Force hide custom field metaboxes

http://codex.wordpress.org/Function_Reference/remove_meta_box function remove_custom_meta_form() { remove_meta_box( ‘postcustom’, ‘post’, ‘normal’ ); remove_meta_box( ‘postcustom’, ‘page’, ‘normal’ ); } add_action( ‘admin_menu’ , ‘remove_custom_meta_form’ ); HTH

Remove Metabox from Menus screen

The box gets added in wp_nav_menu_setup(), so you’ll have to remove it sometime after that and before it’s being output later in nav-menus.php. There don’t seem to be any action hooks you can use there, but admin-header.php has a few. You could try this: add_action( ‘admin_head-nav-menus.php’, ‘roots_remove_nav_menu_metaboxes’ ); I’ve never tried removing metaboxes from the … Read more

Styling Custom Meta Boxes?

Remove the wp_enqueue_style line from the above code and replace it with this: add_action( ‘admin_print_styles-post-new.php’, ‘portfolio_admin_style’, 11 ); add_action( ‘admin_print_styles-post.php’, ‘portfolio_admin_style’, 11 ); function portfolio_admin_style() { global $post_type; if( ‘portfolio’ == $post_type ) wp_enqueue_style( ‘portfolio-admin-style’, get_stylesheet_directory_uri() . ‘/css/portfolio-admin.css’ ); } It is better to put the styling for the admin panel in a separate file … Read more

How to add a SAVE button to replace PUBLISH on a custom post type?

Not mine but modified from here. But if you pop this into functions.php or a plugin it will work. add_filter( ‘gettext’, ‘change_publish_button’, 10, 2 ); function change_publish_button( $translation, $text ) { if ( ‘yourcustomposttype’ == get_post_type()) if ( $text == ‘Publish’ ) return ‘Save’; return $translation; }

More than one meta field in a single meta box?

This is what you are looking for. /* Define the custom box */ // WP 3.0+ add_action( ‘add_meta_boxes’, ‘staff_details_metabox’ ); // backwards compatible add_action( ‘admin_init’, ‘staff_details_metabox’, 1 ); /* Do something with the data entered */ add_action( ‘save_post’, ‘save_staff_details’ ); /** * Adds a box to the main column on the Post edit screen * … Read more

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