Advertisement
BakerMan

Organizer Name + URL (Events Customization)

Oct 17th, 2012
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.23 KB | None | 0 0
  1. /**
  2.  * Open up your custom events/single.php template and try to locate the
  3.  * following lines of code:
  4.  */
  5. <?php if ( tribe_get_organizer_link( get_the_ID(), false, false ) ) : ?>
  6.     <dt class="event-label event-label-organizer"><?php _e('Organizer:', 'tribe-events-calendar'); ?></dt>
  7.     <dd class="vcard author event-meta event-meta-author"><span class="fn url"><?php echo tribe_get_organizer_link(); ?></span></dd>
  8. <?php elseif (tribe_get_organizer()): ?>
  9.     <dt class="event-label event-label-organizer"><?php _e('Organizer:', 'tribe-events-calendar'); ?></dt>
  10.     <dd class="vcard author event-meta event-meta-author"><span class="fn url"><?php echo tribe_get_organizer(); ?></span></dd>
  11. <?php endif; ?>
  12.  
  13.  
  14. /**
  15.  * Delete them and replace them with the following:
  16.  */
  17. <?php if ( tribe_get_organizer_link( get_the_ID(), false, false ) ) : ?>
  18.     <dt class="event-label event-label-organizer"><?php _e('Organizer:', 'tribe-events-calendar'); ?></dt>
  19.     <dd class="vcard author event-meta event-meta-author"><span class="fn url">
  20.         <?php echo tribe_get_organizer() ?>
  21.         <a href="<?php echo tribe_get_organizer_link( get_the_ID(), false ) ?>">
  22.             <?php echo tribe_get_organizer_link( get_the_ID(), false ) ?>
  23.         </a>
  24.     </span></dd>
  25. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement