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