Home › Forums › General Issues › Search by "user" field syntax? › Reply To: Search by "user" field syntax?
Hi @soulhuntre
Your code looks good, make sure all the follow are correct:
1. $current_user->ID is valid data (print_r it to debug)
2. check postmeta table and find a value that your field has stored. What does the data look like. Is it a single ID? or is it an array?
3. print_r the result of $posts. What do you get?
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.