Home › Forums › General Issues › how to use ACF Post types to refine woocommerce product searches in Avada › Reply To: how to use ACF Post types to refine woocommerce product searches in Avada
You cannot search one post type by content contained in another post type. The only thing that ACF stores for a Post Object field or Relationship field is the post ID or array of post IDs for the post or posts that are selected. So the only thing you can search by it the ID of the post. How the query would need to be build would depend on what type of field you are using and whether or not is stores a single value or an array of values.
This is a guide that shows how to search based on an array in a relationship field
https://www.advancedcustomfields.com/resources/querying-relationship-fields/
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.