Display start and end time after date on single event page…how?

WordPress Event Management, Calendars & Registration Forums General Question Display start and end time after date on single event page…how?

This topic contains 2 replies, has 1 voice, and was last updated by  Don West 10 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14949

    Howdy! I’ve putzed around long enough on this and I know there has to be a simple solution 🙂

    My single event page currently reads like this:

    Workshop Details

    This workshop is available from January 8, 2015 until December 24,
    2015.

    It is next occurring on February 5, 2015 — 5:30pm.

    All I want to do is add the end time to the next occurrence, as in:

    Workshop Details

    This workshop is available from January 8, 2015 until December 24,
    2015.

    It is next occurring on February 5, 2015 — 5:30pm – 7:30.

    Point me in the right direction please 🙂 Thanks!

    Don West
    #14950

    Hmmm…seems like every time I post here I shortly

    thereafter come up with my own solution regardless how much time I already struggled with it lol!

    I will post it for others shortly.

    Don West
    #14952

    On line 42 of the event-meta-event-single.php template find:

    <?php $next = eo_get_next_occurrence($date_format);?>
    

    Change it to:

    <?php $next = eo_get_next_occurrence($date_format).' to '. eo_get_the_end("g:ia");?>
    

    The result displays as:

    It is next occurring on February 5, 2015 — 5:30pm to 7:30pm.

    Don West
Viewing 3 posts - 1 through 3 (of 3 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.