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.
Thx for the code. It was usefull for me.
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.
[...] credits for this amazing trick goes to Viper007Bond. This post is provided by the color flyer printing experts, Next Day [...]
[...] credits for this amazing trick goes to Viper007Bond. This post is provided by the color flyer printing experts, Next Day [...]
[...] credits for this amazing trick goes to Viper007Bond. This post is provided by the color flyer printing experts, Next Day [...]
[...] credits fοr thіѕ аmаzіng trick goes tο Viper007Bond. Thіѕ post іѕ provided bу thе color flyer printing experts, Next Day [...]
doesn’t work in wp 3.3.1
Best Regards.