Get Products and price as a dropdown in a contact form

[ad_1]

I’m building a WP website for a client running beauty salon. On the site we list all different treatments and services (as custom post type with the pods plugin).

They want a contact form where customers can order gift-cards (not a web-shop, just a simple contact form) for any given product (or a custom ammount), where the user should be able to choose any treatment and see the price/needed gift-card value.

How can I easily create a dropdown/list that automatically lists the treatments with price in a form, automatically fetching name and price from the post, and syncing future changes automatically. I know I could manually list all treatments and prices in the form but I want to avoid that if only possible to eliminate the risk of the client changing price in one piece of the page and not in the other.

TLDR:

I need to get a form-dropdown/list fetching the title and price (custom field) from a custom post type.

​

Any help is appreciated!

Cheers!

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer