How to add support for additional ICS fields

August 22, 2016

All the below PHP code must be placed in your theme functions.php file for them to work correctly.

 

Step #1

Include additional fields in the fields array.

So here we are including the field evcal_subtitle in the fields array that will be cycle through to fetch values and to save values. You can refer here for other event post meta fields variable names http://www.myeventon.com/documentation/event-post-meta-variables/

Step #2

Display the imported additional field values in fetched events screen as hidden field so that can be passed on to saving the value.

 

Step #3

Saving the field values. By default the additional field will be saved as event post meta using the variable name you gave. You can also use the below pluggable hook to perform your own saving function within the fields loop. $post_id here represents the already created event ID that can be used to associate things to the correct event.

You can also use the below pluggable action to save outside the fields loop.

 

 

NOTE: When you add an extra field make sure you are associating that with the correct event post meta variable name for Event — you can find the commonly used event post meta variable names in here http://www.myeventon.com/documentation/event-post-meta-variables/

Did this article help you? If not, send us a ticket via helpdesk

Ready to setup your calendar?