2018-07-02 09:44:24 +00:00

28 lines
596 B
PHP

<?php
add_action('mep_event_date','mep_ev_datetime');
function mep_ev_datetime(){
global $event_meta;
?>
<p><?php echo $event_meta['mep_event_start_date'][0]; ?> - <?php echo $event_meta['mep_event_end_date'][0]; ?></p>
<?php
}
add_action('mep_event_date_only','mep_ev_date');
function mep_ev_date(){
global $event_meta;
?>
<p><?php echo substr($event_meta['mep_event_start_date'][0],0,12); ?> </p>
<?php
}
add_action('mep_event_time_only','mep_ev_time');
function mep_ev_time(){
global $event_meta;
?>
<p><?php echo substr($event_meta['mep_event_start_date'][0],12,25); ?> </p>
<?php
}