Need help with custom field
-
I need some help with the code required for a custom field. I intend to use it to link to flickr when I use a photo. I would like the output to be something like this:
Photo Credit
Name/linkI can get the custom field to display, but I want to hide the “photo credit” text when the field is empty.
This is my starting point
<?php echo get_post_meta($post->ID, 'credit', TRUE); ?>
but how do I incorporate the “Photo Credit” part?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Need help with custom field’ is closed to new replies.