Post Meta (Custom Fields)
Even though behind the scenes Sugar Calendar stores some things in a custom database table, you can still interact with much of that information in a normal WordPress way.
Given the Post ID for an Event post type, there are a number of meta-keys at your disposal if you'd like to interact with Event data, without needing to dig into the Sugar Calendar code.
This is particularly useful with page builders (like Elementor and Dynamic Tags) where you have a limited ability to interact with the raw data directly, but still need to customize the output of that data to the page that visitors will see.
Event Start
The following meta keys pertain to the start date & time of the Event:
sc_event_date
The date an Event starts, in U
PHP Date format.
sc_event_date_time
The date & time an Event starts, in U
PHP Date format.
sc_event_day
The day an Event starts, in D
PHP Date format.
sc_event_month
The month an Event starts, in m
PHP Date format.
sc_event_year
The year an Event starts, in Y
PHP Date format.
sc_event_time_hour
The hour an Event starts, in h
PHP Date format.
sc_event_time_minute
The minute an Event starts, in i
PHP Date format.
sc_event_time_am_pm
The meridiem an Event starts, in a
PHP Date format.
sc_event_day_of_week
The day of the week an Event starts, in w
PHP Date format.
sc_event_day_of_month
The day of the month an Event starts, in d
PHP Date format.
sc_event_day_of_year
The day of the year an Event starts, in z
PHP Date format.
Event End
The following meta keys pertain to the end date & time of the Event:
sc_event_end_date
The date an Event ends, in U
PHP Date format.
sc_event_end_date_time
The date & time an Event ends, in U
PHP Date format.
sc_event_end_day
The day an Event ends, in D
PHP Date format.
sc_event_end_month
The month an Event ends, in m
PHP Date format.
sc_event_end_year
The year an Event ends, in Y
PHP Date format.
sc_event_end_time_hour
The hour an Event ends, in h
PHP Date format.
sc_event_end_time_minute
The minute an Event ends, in i
PHP Date format.
sc_event_end_time_am_pm
The meridiem an Event ends, in a
PHP Date format.
sc_event_end_day_of_week
The day of the week an Event ends, in w
PHP Date format.
sc_event_end_day_of_month
The day of the month an Event ends, in d
PHP Date format.
sc_event_end_day_of_year
The day of the year an Event ends, in z
PHP Date format.
Recurring
The following meta keys pertain to the recurrence of the Event:
sc_event_recurring
The type of recurrence for an Event (none|daily|weekly|monthly|yearly)
sc_recur_until
The date & time an Event stops recurring, in U
PHP Date format.
sc_all_recurring
Get all sequences for a recurring Event.