Return to Snippet

Revision: 39367
at January 17, 2011 01:33 by mommygeekology

Initial Code
// Get custom field values for easy use later
function get_custom_field_value($szKey, $bPrint = false) {
	global $post;
	$szValue = get_post_meta($post->ID, $szKey, true);
	if ( $bPrint == false ) return $szValue; else echo $szValue;

Initial URL

Initial Description

Initial Title
Function to retrieve custom field values

Initial Tags

Initial Language