How to have a selectbox with list of existing posts?
-
Hello,
For one of my clients, I have to add a selectbox in my form.
This selectbox must show a list of products. These products are existing posts in my custom post type “products”.
So, to make it simplier:
– I created the custom post type “products”
– I have 3 posts in this custom post type (titles are: Apple, Peach, Orange)
– The selectbox must show a list with Apple, Peach, OrangeIs there a way to do this simple thing ?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to have a selectbox with list of existing posts?’ is closed to new replies.