I'm creating a basic event planning platform and have 4 custom post types:
Clients
Events
Activities
Venues
I've created many-to-many relationships for the Events, Activities (Events > Activities) and Venues (Venues > Events) post types, and a one-to-many relationship for the Clients > Events.
I'm now trying to create a 'Build an Event' form where I can choose the Client, Venue and multiple Activities and output a page with the details.
I should know the answer to this but cant for the life of me get a single form to do this. It will show the one-to-many relationship but not the many-to-many. Looking at other support replies, I can see that they need to be created as relationship forms, but how do I then get them into the 'main' form?
Thank you for contacting us and I'd be happy to assist.
Whenever many-to-many relationships are involved, you'll need to use a separate relationship form to make each new connection.
The regular post forms can be used, only when a single post can be connected to the post that is being created or edited.
Based on what you've shared, you can set up one form to create a new 'Events' post. Then once the post has been created, you can redirect the user to that single event post page.