Get relationship between CPT and quantity
-
Hi there, i have two cpts “room” and “booking”. Room does have some generic fields eg. name, size. Booking does have some generic fields eg. firstname, lastname, time and rooms. The frontend does have a form where you can book the rooms (mulitple choices possible). On submit i use the wp_insert_post function to insert the data to the booking cpt. Here i store the firstname, lastname and the choosen rooms (ids if rooms). I can view all bookings in wordpress backend. This is easy and works fine.
Now my question: At the booking-process, i will integrate a field like “quantity” but i dont know how store this and how i get it to the wordpress backend.
Thanks for help.
- The topic ‘Get relationship between CPT and quantity’ is closed to new replies.