The Events Calendar and Gravity Forms are two plugins for WordPress that are incredibly powerful. After much searching and coding, I was able to put together several different sections of code. These are some of the highlights of what’s included that can be automatically created:
- Name and Description
- Date of Event
- Start and End Time
- Cost
- Venues (which can be selected in the form and is populated with previously inserted venue entries)
- Organizers (same as Venues)
- Event URL
- Upload an image and automatically use as Featured Image
Still working on getting the Event Categories portion to work. If you have any suggestions, please let me know.
Here is a page that utilizes the function – http://experiencehermann.com/event-submission
Here is the Gist of code with comments throughout – https://gist.github.com/leepettijohn/0ab7e5a7474f9f77df20
All sources of used code have been cited in the comments and thanks to the many people that have contributed to this.
Thank you Lee for the integration. I have a couple of ‘newbie’ questions. Is this code all inclusive…does it include improved snippets from https://tri.be/gravity-forms-events-calendar-submissions/ or do I need to integrate it with that?
There seems to be a few fixes since 2.0 and the posts on https://tri.be/gravity-forms-events-calendar-submissions/ suggests to use http://tri.be/event-submissions-using-gravity-forms-in-2-0/, which is no longer valid. I rather lost as to which is the definitive tutorial on working with the latest GF and TEC. Thanks for any guidance.
Joseph
Hi Joseph,
The GitHub code should be all inclusive, but I would highly recommend going through each of the comments since there are settings within the code that need to be taken into account. I’m still working on the category selection functionality too if you figure that one out … let me know. 😉
Cheers.