Support

Account

Home Forums Feature Requests Use of field

Unread

Use of field

  • 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 …?

    <? php
    $ field = get_field_object ('mail');
    if ($ field ['NewYork']):?>
        <ul>
            <? php foreach ($ field ['NewYork'] as $ value => $ label):?>
                <li> <? php echo $ label; ?> </li>
            <? php endforeach; ?>
        </ul>
    <? php endif; ?>
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.