is there any error in following code? when i use following code in content.php file of my theme, then nothing is displayed on blog, it seems there is some error. and when i comment folowing code everything gets back to normal.
<?php if (empty(get_custom_field_value("signature",""))) : ?>
—
<?php the_category( '<span>/</span>' ); ?>
<?php endif; ?>
here is get_custom_field_value function:
function get_custom_field_value($szKey, $prefix = '', $bPrint = false) {
global $post;
$szValue = get_post_meta($post->ID, $szKey, true);
if ( $bPrint == false ) return (empty($szValue) ? "" : $prefix . $szValue); else echo (empty($szValue) ? $szValue : $prefix . $szValue);
}
