WordPress Trick: How To Show Hidden Custom Fields

Often when I’m developing some WordPress code, I need to be able to debug by being able to see hidden custom fields (any custom field with an ID that’s prefixed with an underscore won’t show up on the edit screen). In order to do so, I use this little bit of code:

add_action( 'admin_head', 'showhiddencustomfields' );

function showhiddencustomfields() {
	echo "<style type='text/css'>#postcustom .hidden { display: table-row; }</style>\n";
}

You can drop it into a new plugin or if you’re lazy, your theme’s functions.php file.

15 thoughts on “WordPress Trick: How To Show Hidden Custom Fields

  1. Except… I realize it had a more effective way. At the add new post window at the top right of the screen there is a screen options and there you activate the custom fields.

  2. Pingback: How to Show Hidden Custom Fields in WordPress

  3. Pingback: How to Show Hidden Custom Fields in WordPress | WPhub.biz

  4. Pingback: How to Show Hidden Custom Fields in WordPress | Customize WordPress Blog

  5. Pingback: How to Show Hidden Custom Fields in WordPress - Wordpress Tutorials

  6. Pingback: Show Hidden Custom Fields | Best Plugins - wordpress – widgets – plugin 2012

  7. Pingback: Mostrando os custom fields ocultos do WordPress | Flutuante

  8. Pingback: ??? ?????????? ??????? ???????????????? ???? ? WordPress | WPinCode — WordPress ??? ????????

  9. Pingback: How to Show Hidden Custom Fields in WordPress - wikiHow 365

  10. Pingback: Programing Solution - How to Show Hidden Custom Fields in WordPress

Comments are closed.