Skip Navigation

[Resolved] Assigning Child / Parent relationship with The Events Calendar form

This support ticket is created 2 years, 9 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.

Our next available supporter will start replying to tickets in about 1.71 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Waqar 2 years, 8 months ago.

Assisted by: Waqar.

Author
Posts
#2294455
Screen Shot 2022-02-16 at 10.38.20 AM.png

Tell us what you are trying to do?
Screenshot of a ticket that was closed. Sorry, I did not get back to it in time. I want to connect events from The Events Calendar to a Toolset Type in a parent > child relationship. I set up the relationship but I think I need to add a hidden form field to their 3rd party form.

Is there any documentation that you are following?
N/A. If you have any documentation on assigning relationships in form fields. (hidden) that would be great.

Is there a similar example that we can see?
This is a test business types page: hidden link
And what I would like to be able to do is to add events that this business created using this form:
hidden link
Then I should be able to include it's child event elements on that business page.

#2294909

Hi,

Thank you for contacting us and I'd be happy to assist.

I tried to view the submit an event form, but, it is asking to log in first.

Can you please share temporary admin login details, so that I can see how this form is set up in the admin area? I'll be in a better position to guide you with the next steps, accordingly.

Note: Your next reply will be private and it is recommended to make a complete backup copy, before sharing the access details.

regards,
Waqar

#2298343

Thank you for sharing these details.

Reviewing your setup and the add new event form, I'll recommend consulting The Events Calendar support to know about the recommended hook that can be used to trigger a custom PHP function when a new event is created.

In this PHP function, you can get the ID of the current user's 'ROC Businesses' post and connect it with the newly created event post, using the "toolset_connect_posts":
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_connect_posts

I hope this helps and please let me know if you need any further assistance around this.