Populate a select menu with custom post type values, but ID specific.
-
Hello!
I wanted to know if I could get your quick input on this integration:
I have a service, similar to a travel agency, using Woocommerce.
– You have to create an account to order.
– Once you have an account, you can “buy” products.
– Within your account page, you can add “travellers”, or “family members”.
– Therefore, that would mean that when you are in your account page, you would have a repeatable group with multiple fields where you can add your family members and some of their preferences (meal preferences, seat…etc.)
– Once you save a “travellers”, you could modify the preferences.
– What I think I could do is create a custom post type, where all “additional members” would go in there, and then attach this custom post type to the Woocommerce account page so that when the customer signs in into his account, he can see the members he added (only his).
– My question is: Could I use CMB2 to attach/assign a custom post type to the account page, so that the account page can “fetch” these additional members? Similar to the taxonomy select/check, where the select/check are populated by the taxonomies values.
I hope my question is not to blurry!
Thank you a lot, any pointers would be appreciated! 🙂
- The topic ‘Populate a select menu with custom post type values, but ID specific.’ is closed to new replies.