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 "?
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?