Hi
Is it possible to connect a ‘group’ of CPT records, which we have pre-created to another new CPT record, which we have linked via a Many to Many relationship?
So, for this client project we have three CPT’s - 1) Your Booking, 2) Hotels & 3) Restaurants.
Hotels and Restaurants are linked to Bookings via ‘many to many’ relationships.
All the hotel and restaurant CPT posts have been created, because they are a constant and very rarely change.
In the Booking CPT screen, which is the only CPT that has new records added (bookings) there is a Repeating Group Field for the tour days, where the detailed itinerary for each day is entered.
Below that we then have the Hotels, and Restaurant CPTs, which are added and listed via the relationship ‘link’ we have created.
It is very easy to add any number of days to a booking, which works extremely well for this project. As does the ability to add hotels and restaurants via the Connect Existing xxxxxxx Button one by one.
However for most bookings, there are a lot restaurants and sometimes a lot of hotels depending on the type of booking and the duration of the holiday tour.
So, we would like to add a new ‘button’ which would allow us to add a ‘group’ of restaurants to a booking. The same with Hotels
Rather than having to add each individual Restaurant CPT record over and over again. For somewhere like Edinburgh, there are over 30 restaurants and to add them one by one to a new booking is very time consuming and also there is the potential to inadvertently miss off a restaurant or two if distracted.
Our client is creating a lot of booking each day for the same location and therefore the ability to add a group of 30+ records by clicking a Button and selecting the ‘group’ of records is a huge time saver.
In the attached image, we have shown where we'd like to add the button.
Is it achievable?
If so, how would we go about it?
Any guidance and/or advice you can provide is very much appreciated?
Kind regards
Ade