Home › Forums › ACF PRO › Search in post object field by post_id › Reply To: Search in post object field by post_id
Do to this would require multiple filters.
The first would be by using acf/fields/post_object/query https://www.advancedcustomfields.com/resources/acf-fields-post_object-query/
This filter would need to add another filter on “posts_where” to alter the where portion of the query add searching the post ID, it is very similar to searching custom fields with the WP search. See this for more information https://adambalee.com/search-wordpress-by-custom-fields-without-a-plugin/
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.