Multiple custom post type entries with a single CF7.
-
Greetings.
I have a custom post type (“Hotels”) and I have created 3 entries (“Hotel A”, “Hotel B”, and “Hotel C”).
I have also created some custom fields for the Hotels.
One of them is a custom ” Hotel- id” I give to each hotel.
On the Hotel Page (a template for all Hotels) there is a Book button that leads to the Booking Page.
The Booking Page (with Contact Form 7) is the same for all 3 entries.
I want when the user clicks the Book button:
1. to be transferred to the booking page:2. to save the Hotel id value (so that I understand the Hotel that the user booked)
3. the Hotel id value should be reflected in the Contact Form 7 email message that the owner will receive.
I think I am good with Step 1 but I can’t verify if the Booking pages retrieve the id and I don’t know how to represent the Hotel id in the email message.
- The topic ‘Multiple custom post type entries with a single CF7.’ is closed to new replies.