Home › Forums › General Issues › How to search by post object? › Reply To: How to search by post object?
Guys,
I’m slow – It looks like Elliot solved it on this thread – But the problem was someone else’s answer was highlighted with code (and I mistakenly thought theirs was the solution when it’s not). Elliot’s response here (which is the solution and easiest possible thing to do) –
From this page – https://support.advancedcustomfields.com/forums/topic/meta-query-for-post-object/
Your meta key will need to be the name of the field, and your meta value will need to be the $post_id
Hope this helps others in the future,
T
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.