• How can i separate the date from the time of the event ?

    in a standard install the event time is shown as below on single posts –

    Start: 22 October 2015 4:30 pm

    and like this on an archive –

    24 October 2015 1:00 am

    It doesn’t show a start and end time (if there is one) , only shows the start time. I’d like to insert an @ before the ‘time’ or ‘starting at’ or whatever.

    i cant find a way to separate the event time from the code below –

    //Format date/time according to whether its an all day event.
    //Use microdata https://support.google.com/webmasters/bin/answer.py?hl=en&answer=176035
    
    if( eo_is_all_day() ){
    	$format = 'd F Y';
    	$microformat = 'Y-m-d';
    	}else{
    	$format = 'd F Y '.get_option('time_format');
    	$microformat = 'c';
    	}?>
     <time itemprop="startDate" datetime="<?php eo_the_start($microformat); ?>"><?php eo_the_start($format); ?></time>

    https://www.ads-software.com/plugins/event-organiser/

Viewing 1 replies (of 1 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    As of 3.0.0, the archive pages will show a start and end time.

    To insert text before the start time (on the single event page) just modify the

    $format = 'd F Y '.get_option('time_format');

    to include that text, but escape it which backslashes, e.g:

    $format = 'd F Y \s\t\a\r\t\i\n\g \a\t '.get_option('time_format');
Viewing 1 replies (of 1 total)
  • The topic ‘How to Separate the 'date' from the 'time'’ is closed to new replies.