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

Reply To: How trigger live search after Custom Code: automatically select filter values?

Home Forums Product Support Forums Ajax Search Pro for WordPress Support How trigger live search after Custom Code: automatically select filter values? Reply To: How trigger live search after Custom Code: automatically select filter values?

#31432
Dave Buettlerallchemist
Participant

Dear Ernest

A new DIFFICULT question about this topic: Is it possible to autoselect in a dynamic way ACF Custom Fields in a Search instance? I guess this is not possible?

I have this Post Downloads Page here. In the red is the content of Custom fields about the product (e.g. color, black & white, transparency). This are all ACF custom fields from the post.

https://www.illuminatoren.com/downloads/kopie-pa-test-special-bonus-ultracopy/

Let’s say a user will click the first Custom field: “farbig” (Value of custom field). The Website redirects the user to the search results page. In the moment the clicked Custom field is not attached to the link and the user sees just all search results.

Is it possible to pass some arguments (chosen custom fields) with the URL to autoselect the Custom Fields in the Search instance?
https://www.illuminatoren.com/downloads/

I guess this is not possible and a workaround would be to create new taxonomies instead of custom fields?

With categories & tags it works. If you click on the Post Downloads Product page (above) on one of this categories or tags, then WordPress redirects to a Archive Page and Ajax Search Pro is with the Custom Code (see postings above) able to autoselect the categories & tags.

Post Tags & Categories
Künstler: Hugentobler Hansi
Kategorien: Bistum, Bistum Basel, Familie, Feiertage, Firmung, Jugendliche, Ort Location, Verlorenes Schaf (Parabel), Vom Kamel und dem Nadelöhr, Weihnachten

I use Elementor Pro and EDD Easy Digital Downloads.

Thank you & greetings from Switzerland, Luzern