Home › Forums › General Issues › Querying user ID › Reply To: Querying user ID
I’ve looked briefly into comparison operators and tried to get the below code to work with no success. New to PHP so be gentle :/
<?php $client_id = get_currentuserinfo($user_ID); if ($client_id == get_field('user_select')) : ?>
<p>Working</p>
<?php else : ?>
<p>Not Working</p>
<?php endif; ?>
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.