Hello, my first time using this plugin and wowowow its awesome!
Maybe a stupid question…
I’have created 18 field to create a user profile.
Name – Surname – City – Mail … etc…
Now the question…
is there a way to find for example all the users who live in New York and tell me their email?
should it be structured like this …?
$ field = get_field_object ('mail');
if ($ field ['NewYork']):?>
<? php foreach ($ field ['NewYork'] as $ value => $ label):?>
<li> <? php echo $ label; ?> </li>
<? php endforeach; ?>
<? php endif; ?>
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users