Home › Forums › General Issues › Query post with post object field › Reply To: Query post with post object field
Hi Himandev,
It’s totally possible, the query method depend on the users field type.
I assume your field type return user by ID. You have to query your score CPT with wp_query and metaqueries.
If it’s a single post object field allowing only one user : use the wp_query with you field name as key and an equal criteria with the needed user ID.
If it’s a single post object field allowing multiple user : use the wp_query with you field name as key and and In criteria with the needed user ID.
If you have your user field in a repeater : I recomand you to follow the John Huebner method
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.