
Are you just upgraded your wordpress installation into latest version of wordpress V3.1? Please do check Meta-boxes and custom fields availability, When you are creating new post. Many of the self hosted wordpress bloggers (Including me) who get shocked and frustrated about custom fields, meta-boxes are not available when creating new post after upgraded their wordpress installation in to version 3.1 from 3.05.
Here is the quick solution (may be just a tip) about how to restore hidden custom fields and meta-boxes after upgrade to latest wordpress version 3.1 installation. Here we go…..
When you creating a new post, just pull-up the screen options link which located top right corner of the screen as illustrated below. These settings in Screen Options are saved so that you can customize how your own editing screen looks. By default custom fields and some of the meta-boxes are disabled by default in wordpress V 3.1

Enable the check boxes according to your need, what fields should be visible in your editor screen. Thats all. In feature selective fields will be visible in your editor screen. If you want to show it permanently, Following hack will do the trick. Simply edit functions.php file in your theme folder and add the following code and save it.
// Change what's hidden by default
add_filter('default_hidden_meta_boxes', 'be_hidden_meta_boxes', 10, 2);
function be_hidden_meta_boxes($hidden, $screen) {
if ( 'post' == $screen->base || 'page' == $screen->base )
$hidden = array('slugdiv', 'trackbacksdiv', 'postexcerpt', 'commentstatusdiv', 'commentsdiv', 'authordiv', 'revisionsdiv');
// removed 'postcustom',
return $hidden;
}
Anyway, wordpress need to highlight enhanced features of screen-options, Once user did updated into latest v3.1 wordpress version. Hope, the upcoming versions of wordpress will need to notify and highlight these hidden features once wordpress upgraded.


March 01, 2011
Ryan


Welllllllll done!
OMG, this screwed me up.
Just for searching porpose, this tip fixed the “hide-if-js” problem for writing post. (this is the class of the hidden divs :p