Home › Forums › ACF PRO › Query CPT by User field custom field › Reply To: Query CPT by User field custom field
Hi John,
Thanks for that. I did end up implementing this and it does work if using a Relationship field. If using a User field, it doesnt work.
Using the Relationship field, Judge 1 can view his profile page and see what competitions he has a “relationship” with, but he can also go to Judge 2’s page and see Judge 2’s “relationships”. What I need to do is somehow allow each judge to only see the competitions they are related to. So if browsing another persons profile page it wouldnt show anything.
I thought using the User field would allow me to do this because each Judge – which is a CPT entry – is set as the Author as well. But maybe this can be done with the Relationship field as well. Any thoughts on this?
Thanks again
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.