• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    I think that would be possible utilizing this technique: Getting default values from the context

    Thread Starter zandros3

    (@zandros3)

    I am sorry…I feel a little stupid… I read the article many times and I still don’t understand how exactly this is going to help me.

    Can you please give me an example of a Hotel Page called “Sunrise Villa” that has a “Book now” button and passes (on click) the “Sunrise Villa” to a booking page and inside a contact form 7 form field?

    • This reply was modified 1 year, 5 months ago by zandros3.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple custom post type entries with a single CF7.’ is closed to new replies.