Home › Forums › General Issues › Select field › Reply To: Select field
Hi @Deelite
ACF offers many functions to interact with your data.
Normally, you would load the selected value like this:
$value = get_field('field_name');
If you want to actually ‘create’ a select input, then you can use a function called create_field
like so:
$field = get_field_object('pickregion');
create_field($field);
The code you posted (the_content) has nothing to do with creating a select field. May I ask where you found this code, and why you posted it above?
Thanks
E
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.