My custom fields is not working just wondering if I'm doing something incorrect...
This is the function in the functions.php...
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;
}
And then this is how it looks on my category.php for where I'd like to put the custom function...
<?php
$key = 'sidecolumn';
$meta_field = get_post_meta($post->ID, $key, $single = true);
echo $meta_field;
?>
Is there anything else I am missing?
Thanks,
Mike