Top

Daily Tip: How to Hide WordPress Custom Fields on Posts and Pages

October 31, 2010

If you want to keep the post edit screen as simple as possible for creating new content, here’s a little snippet that will remove the custom fields boxes. This will help to reduce clutter and keep your CMS user-friendly.

Add this to your theme’s functions.php file if you don’t need custom fields:

add_action('admin_init','customize_meta_boxes');
function customize_meta_boxes() {
     remove_meta_box('postcustom','post','normal');
}

That snippet applies to posts. If you want to change it to pages, simply swap ‘post’ for ‘page’ and you’re in business.

Tweet This Post

Comments

Got something to say?

Bottom
Article Archive  |  This site is a historical archive of pressography.com, a WordPress plugin and theme blog that published between 2006 and 2012. It is preserved for reference and is not operated by, affiliated with, or endorsed by its original authors. Nothing here is for sale and no form on this site is active. If you are the original owner and would like this domain returned, please get in touch.