AyeCode / events-for-geodirectory

The Events Calendar for GeoDirectory allows you to create a Directory of GeoEvents. Recurring Events, Events Locator with maps, the Events Calendar widget, sorting events by upcoming are the main features of this add-on for GeoDirectory.
https://wpgeodirectory.com/downloads/events/
Other
2 stars 2 forks source link

Time formats for event schedules - bring over from post meta #159

Closed alexrollin closed 2 years ago

alexrollin commented 3 years ago

Our members want even more flexibility for event schedules widget they seek to have the same data options as they get with gd post meta for the event schedules template output

This comes about in support as requests to hide the end date and time, common, or the solution that instead of using event schedules they must use post meta for their event date data output - but this will NOT work for the special cases for which event schedules was designed.

It would also be nice to have date parts, so the schedule template could be edited in a granular format more like the address parts in GD Post Address - we have regular requests for this.

image

image

alexrollin commented 3 years ago

https://secure.helpscout.net/conversation/1590055814/22728/

alexrollin commented 3 years ago

https://secure.helpscout.net/conversation/1619139845/23936?folderId=3803591#modal

kprajapatii commented 2 years ago

Usage:

function gd_snippet_get_schedule_templates( $templates ) {
    $templates[] = '{start_date} . {start_time}';

    return $templates;
}
add_filter( 'geodir_event_get_schedule_templates', 'gd_snippet_get_schedule_templates', 10, 1 );