View difference between Paste ID: uf0P6Kn0 and w0jpTZ87
SHOW: | | - or go back to the newest paste.
1
<?php if( function_exists('tribe_the_custom_fields') && tribe_get_custom_fields( get_the_ID() ) ): ?>
2
  <?php 
3
	//Check to see if there is any value in the field before displaying
4-
	if(!empty(tribe_get_custom_field('Add a ticket link'))) { ?>
4+
	if(!empty(tribe_get_custom_field('Add a ticket link', get_the_ID()))) { ?>
5
		<dd class="event-meta event-meta-custom"><a href="<?php echo tribe_get_custom_field('Add a ticket link'); ?>">Ticket</a></dd>
6
	<?php } ?>
7-
	<?php if(!empty(tribe_get_custom_field('Add a Youtube video link'))) { ?>
7+
	<?php if(!empty(tribe_get_custom_field('Add a Youtube video link', get_the_ID()))) { ?>
8
		<dd class="event-meta event-meta-custom"><a href="<?php echo tribe_get_custom_field('Add a Youtube video link'); ?>">Youtube</a></dd>
9
	<?php } ?>
10-
	<?php if(!empty(tribe_get_custom_field('Add a Soundcloud link'))) { ?>
10+
	<?php if(!empty(tribe_get_custom_field('Add a Soundcloud link', get_the_ID()))) { ?>
11
		<dd class="event-meta event-meta-custom"><a href="<?php echo tribe_get_custom_field('Add a Soundcloud link'); ?>">Soundcloud</a></dd>
12
	<?php } ?>
13-
	<?php if(!empty(tribe_get_custom_field('Add any other promo link'))) { ?>
13+
	<?php if(!empty(tribe_get_custom_field('Add any other promo link', get_the_ID()))) { ?>
14
		<dd class="event-meta event-meta-custom"><a href="<?php echo tribe_get_custom_field('Add any other promo link'); ?>">Promo link</a></dd>
15
	<?php } ?>
16
<?php endif; ?>