How do you display a specific custom field?
I know in single-listing this gets all the custom fields:
<div class="listing-fields">
<?php the_listing_fields(); ?>
</div>
How can we just get the contents of one field?
I have tried this but it did not work:
<?php get_post_meta( $post->ID, 'listing-custom-field-youtube', true ) ?>
Figuring out how to get an individual custom field is the first thing I need to know how to do.
The next I need to figure out how to turn it into a clickable link, or even better, be able to have it be a clickable image like the facebook icon.
I already have custom fields containing the URLs for; youtube, linkedin, google+, etc. Just need to figure out how to make them function like the facebook image link.
Thanks in advance.