This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Using ACF Relationship fields in Custom Filters

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Using ACF Relationship fields in Custom Filters Reply To: Using ACF Relationship fields in Custom Filters

#32829
Ernest MarcinkoErnest Marcinko
Keymaster

For the frontend part you can use the filters API. That let’s you create cusom filters or modify existing ones. Then, you can access the generated arguments within the asp_query_args hook, which executes right before the search query. For custom fields the post_meta_filter stores the generated filters.
The asp_results hook filters the existing search results, where the query arguments are also present.