I have a custom post type fine_prints
with only a title field.
I want to add a new field in woocommerce product page
. A dynamic select that will show all fine_prints
with their id
as value
. I have added many custom fields in product page
using ACF
. I'm new to wordpress. How can I achieve this? Any help? I want to do this in functions.php
. Thankyou.
For adding select custom filed for custom post type in AC, follow
It will return an array so you can loop through it.