Question, what’s the best way to dynamically display one of the Tribe custom fields? For example, I have an RSVP link field and if the custom field has a link in it, I want to make it into a button. If the contents is empty, I don’t want to display anything.
Here was my first attempt:
<?php $RSVP = tribe_get_custom_field($post->ID, 'RSVP', true);
if ($RSVP) { ?>
<a class="rpr-button" href="<?php echo tribe_get_custom_field('RSVP'); ?>">Click here to reserve your spot!</a>
<?php }
else { ?>
<?php } ?>