|Friday, April 28, 2017
[an error occurred while processing the directive]
[an error occurred while processing the directive]
[an error occurred while processing the directive] [an error occurred while processing the directive]
[an error occurred while processing the directive]
[an error occurred while processing the directive]
[an error occurred while processing the directive]

How to show hidden Custom fields 

As you’re surely aware, WordPress supports something called Custom fields. They can, and mostly are used to modify your theme with a specific, custom behavior.

Custom fields

Custom fields

Now, when you’re using a plugin, it most likely uses Custom fields for at least a part of what it does. And sometimes, you want to change that plugin’s behavior, or you simply want to see how it’s developer did something. Showing hidden Custom fields comes in real handy in those cases.

Open up your favorite editor, and update your functions.php with the following code:

1
2
3
4
5
add_action( 'admin_head', 'showhiddencustomfields' );
 
function showhiddencustomfields() {
    echo "<style type='text/css'>#postcustom .hidden { display: table-row; }</style>\n";
}

This has also been made into a plugin.

[an error occurred while processing the directive]
[an error occurred while processing the directive]
[an error occurred while processing the directive]