Event Template Tags
The following template tags can be used within an event query loop or the single event template. The code for these template tags is located in wicked-calendar/lib/template-tags/event.php (or wicked-calendar-pro/plugins/wicked-calendar/lib/template-tags/event.php if you’re using Wicked Calendar Pro).
wicked_event_date()
Returns the formatted date (or date range) for the event.
wicked_event_date_and_time()
Returns the formatted date and time for the event.
wicked_event_end_time()
Returns the formatted end time of the event.
wicked_event_has_categories()
Returns whether or not the event has any categories assigned to it.
wicked_event_has_organizers()
Returns whehter or not the event has any organizers assigned to it.
wicked_event_has_tags()
Returns whether or not the event has any tags assigned to it.
wicked_event_has_venue()
Returns whether or not the event has a venue assigned.
wicked_event_has_website()
Returns whether or not the event has a website.
wicked_event_is_multiday()
Returns whether or not the event is a multiple-day event.
wicked_event_link_venue()
Returns whether or not to link the event’s venue to the venue’s detail page.
wicked_event_organizers()
Returns an array of the event’s organizer. Each item in the array is a Wicked_Calendar_Organizer object.
wicked_event_show_map()
Returns whether or not a map of the event’s venue location should be displayed on the event detail page.
wicked_event_start_time()
Returns the formatted start time of the event.
wicked_event_time()
Returns the formatted time (or time range) for the specified event ID (or the current event if an event ID is not specified).
wicked_event_venue()
Returns the venue assigned to an event or false if no venue is assigned.
wicked_event_venue_address()
Returns the HTML for the event’s venue’s address.
wicked_event_venue_address_single_line()
Returns the venue address formatted as a single line.
wicked_event_venue_has_address()
Returns whether or not the event’s venue has an address.
wicked_event_venue_has_geocoding()
Returns whether or not the event’s venue is geocoded.
wicked_event_venue_link()
Returns the URL to the venue assigned to the event.
wicked_event_venue_name()
Returns the venue name (if any) associated with the event.
wicked_event_website()
Returns the website for the event.
wicked_get_event()
Gets the event with the specified ID or the current post (if no ID is specified and the current post is an event).
wicked_get_events()
Retrieve an array of events. See the wicked_get_events() documentation for details.