Home › Forums › Front-end Issues › get_field not working with select › Reply To: get_field not working with select
Hi @deeve007
I can’t reproduce that. Both versions output the selected item and the selected item only.
Do you see the incorrect value when you debug all fields?
<?php
$fields = get_fields();
echo "<pre>";
print_r($fields);
echo "</pre>";
?>
When you edit the post again, is the first value selected or the one you thought you’d selected?
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.