mage-eventpress/inc/template-prts/organizer.php

9 lines
544 B
PHP
Raw Normal View History

2020-01-22 07:15:24 -05:00
<?php
add_action('mep_event_organizer','mep_ev_org');
function mep_ev_org(){
2020-03-19 08:34:31 -04:00
global $post,$author_terms;
ob_start();
if($author_terms){ ?><p> <?php echo mep_get_option('mep_by_text', 'label_setting_sec') ? mep_get_option('mep_by_text', 'label_setting_sec') : _e('By:','mage-eventpress'); ?> <a href="<?php echo get_term_link( $author_terms[0]->term_id, 'mep_org' ); ?>"><?php echo $author_terms[0]->name; ?></a></p><?php }
$content = ob_get_clean();
echo apply_filters('mage_event_single_org_name', $content,$post->ID);
}