I’m using this code I found on here:
$values = get_field('company');
if($values)
{
echo '<ul>';
foreach($values as $value)
I get one field returned but not the rest of the companies. Any ideas? I’ll link to an image that may help with what I’m doing.
https://drive.google.com/file/d/19QGieznwKtl9F8O5N4b-IRXWKIRSvJGn/view?usp=sharing
Is the select field set to return a single value or multiple values?
The code differs, check the docs for code examples.
You can also check this post on how to get all values from a select field
Multiple values. I’ll attach an image link.
https://drive.google.com/drive/folders/1JKviFOndpBCbXShPM9cAIwSpkUiynppe
I need the “choices” value.
Thanks,
Justin