Home › Forums › General Issues › Retrieve all possible field options › Reply To: Retrieve all possible field options
Hi @cmegown
Yes, just use the get_field_object
to find the $field array. Within that array you will see the field’s choices
.
This function uses a $field_name
parameter, but you may also need to specify a $post_id
parameter of a post where this field has saved a value. If this is not possible, please use the $field_key
instead of the $field_name
.
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.