Home › Forums › Front-end Issues › Value return number(index) instead word's › Reply To: Value return number(index) instead word's
Hi @mczmike
I feel like the issue here is in the way you’ve set up the select values.
In the field settings, have you setup the values like
0 : value1
1 : value2
etc.
?
get_field will only return the value part of the select (0,1 etc) and not the label you set (value1, value2 etc.).
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.