Custom field with
-
Hello,
I am using this code for displaying post custom field value
<?php echo "Model: "; $key_name = get_post_custom_values($key = 'Model');echo $key_name[0]; ?>
and some others.Sometimes post does not have all custom fields and there is displaying just text “ModeL:”
How can I change the code above in order to display nothing when custom fields model is blank.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Custom field with’ is closed to new replies.