I have made a form receiving inquiry from my visitor.
I want to use my product post list in a selection input field. People can select a product name from select option, and send their inquiry.
Please share your technique, How can I implant it?
I have made a form receiving inquiry from my visitor.
I want to use my product post list in a selection input field. People can select a product name from select option, and send their inquiry.
Please share your technique, How can I implant it?
Here’s a way to do it dynamically. This approach allows you to pass the post type as a parameter so you can use the same function with multiple post types without have to edit the code ever again.
Also here’s another old post showing how to do that