How would I go about changing the format of date display in events+

0

Howdy all,

I’m not sure if this is going to be easy/possible to do with out messing with the core files but…..

how would I go about changing the date descrition in the events archives page and event single page so the date is displayed as

17&18 August 2013, 10am to 4pm

instead of its current format which is

Takes place on August 17, 2013 from 10:00 am to 4:00 pm

and Takes place on August 18, 2013 from 10:00 am to 4:00 pm

Thanks in advance

cheers,

D

  • PC
    • WPMU DEV Initiate

    Hello @dunskii

    Greetings and thanks for posting on the forums.

    That is not gonna be something easy to do and without making core changes.

    However, it seems that it can be a nice feature to be added to the plugin where you can group the recurring events with same times to show up as a one line description.

    I have moved this to the right category and have sent a note to our lead developer to see if it can make a good feature for future release of a plugin.

    He should be here sooner than later.

    Cheers

    PC

    Sales &Support

  • Vladislav
    • Dead Eye Dev

    Hello,

    Actually, there’s a filter hook that you may want to use to make this happen. The filter is called “eab-events-event_date_string”, and will pass up to 4 arguments to the function bound to it. The arguments are, in this order: a date string the plugin came up with this far, event ID, start timestamp and end timestamp. The function is expected to return a string, which will be used as the date representation. If you wish to see it in context, it is defined in file lib/class_eab_template.php, method get_event_dates().