Skip Navigation

[Resolved] How to use CRED form to add events and venues with The Events Calendar Plugin

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to know if it is possible to use CRED to manage Events and Venues for The Events Calendar plugin.

Solution: It may be possible using custom code, but it depends on how the data is structured by this plugin. CRED can help you create custom post types if these posts are stored in the standard posts table, and can help you add custom field information if these fields are stored in the standard postmeta table. The best source of information about that would be the support team for The Events Calendar.

Relevant Documentation: https://toolset.com/documentation/programmer-reference/cred-api/
https://theeventscalendar.com/functions/

This support ticket is created 7 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by nickH-5 7 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#559319

Tell us what you are trying to do?

I would like to be able to use CRED forms to create venues and events which are part of the Modern Tribe Events Calendar system

Is there any documentation that you are following?

I have looked at this support thread : https://toolset.com/forums/topic/using-the-events-calendar-plug-in-with-layoutsview/#post-559198

But I can't work out how to include event dates, times and venues in CRED forms (or how to use Views to display venues)

Thanks

Nick.

#559372

Hi, creating custom post types for another plugin isn't always possible, and we don't have a seamless integration with The Events Calendar. I know that integrating with their Layouts system has been a major problem for other users, but I'm not aware of any integration with CRED. It really depends on how The Events Calendar stores their data for events and venues. If these are public post types, then CRED can help you create those posts, but collecting all the custom field information is another issue. If The Event Calendar stores their custom field information in a format that isn't standard for CRED, then you'll have to write custom conversion code in PHP that will translate the information for the non-standard data-type fields into a format that can be interpreted by The Event Calendar. If their custom field information isn't stored in the standard postmeta table, you'll have to integrate their API code to set it up. That's a lot of ifs, and a lot of custom code.

The best source of information about the Events and Venues post types and custom fields is your plugin's authors or support forums. So my best answer is maybe, if you're interested in writing custom code and capable of integrating with the Events Calendar plugin's APIs. I can help you with any CRED API methods you need, but The Events Calendar's APIs aren't covered here. Unfortunately I do not have a simple "yes" or "no" answer for you, because I'm not aware of any other users who have attempted this level of integration.

There is a paid addon to the Event Calendar that you might be interested in researching:
hidden link

More information about technical integration:
https://toolset.com/documentation/programmer-reference/cred-api/
hidden link

Let me know how you would like to proceed.

#561870

Thanks. I think I might try to build a calendar capability from scratch using Toolset given it will give us the flexibility we need.