Retrieve post custom meta data field.

Signature

post_custom( $key = '' )
key
 (string) Meta data key name.
Default: ''

Return

(boolean|string|array) Array of values or single value, if only one element exists. False will be returned if key does not exist.

Source

function post_custom( $key = '' ) {
	$custom = get_post_custom();

	if ( !isset( $custom[$key] ) )
		return false;
	elseif ( 1 == count($custom[$key]) )
		return $custom[$key][0];
	else
		return $custom[$key];
}
WP Trac GitHub

Link here