Skip Navigation

[Resolved] m=working with tribe events recurring events

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

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 1 reply, has 2 voices.

Last updated by Christian Cox 6 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#956414

bsd

here is my challenge:
i have recurring events in tribe events calendar
i use woocommerce product as "course" sending ticket
to do that - i made a toolset multiple relationship with types.
than i connected a specific event to a product
i created a view to be showed in the events single page that echo a button that links to the connected product for paying for that "event"
this works well with single events - but with recurring events - events plugin creates and update all recurring events by the events parent cpt post. But the toolset relationships are not updated with their recurring events hooks.

what should be done to solve this - and build a view that , inserted in a event single post view, show products relation-connected to the "main event recurring "?

#956657

Hi, I'm not much of an expert with Tribe Events, so I'm not really clear how recurring events are handled. It sounds like you are saying the original Event is connected with a Product in a M2M relationship, but the recurring Events are not connected to the same Product. Is that correct? If so, then you would need a way to determine the original Event ID on the single Event post when viewing a recurring Event. For instance, if Tribe Events offers a shortcode like [original-event-id] that gives you the original Event ID for any recurring Event post, then you could use that ID in your View as a shortcode attribute. Something like this:

[wpv-view name="your-button-view-slug" wpvrelatedto="[original-event-id]"]

Place the View in the Event single post template. Then make a post relationship Query Filter in the View that responds to the shortcode attribute "wpvrelatedto".

Do you know if Tribe offers a shortcode like this, so you can access the original Event ID in a recurring Event post?