With EventKoi, you can create dynamic event templates in the site editor using our meta keys. You can add any meta key into an event template and it will dynamically pull the correct information based on the relevant event.
This works very similarly to shortcodes, but with the added ability to format the meta keys (e.g. change the text size and colour).
It can only be used with the heading, paragraph, button, and image blocks. So, for example, you cannot use the event_image meta key with the cover image block.
Complete list of meta keys from EventKoi:
- event_title
- event_details
- event_timezone
- event_gmap
- event_image
- event_image_url
- event_calendar_url
- event_calendar
- event_calendar_link
- event_location
- event_datetime_with_summary
- event_datetime
- event_date_type
- event_rulesummary
- ticket_rsvp
For custom fields
Display all filled out custom fields: event_custom_fields_with_name or event_custom_fields
For individual custom fields or groups, head to Settings > Custom fields and look for the field ID. The ID is the meta key.
You can add with_name to the end of any custom field ID to also display the name of the custom field.
Where to use meta keys in the block editor
You have the option of customising the default events template. This will allow you to change how all events are displayed. This is handy if you want to customise your events template at a global level.
Alternatively, you can create your own template to use on individual events. This is handy if you have an event that needs a different design from your default events template.
Learn how to customise the default events template here: