Index ACF Fields as Filter
- prakashreddy.imduriParticipant1 year, 1 month ago #35288
Is it possible to index acf fields as filters along with taxonomy filters , currently taxonomies have the filters.. Can it be configure with acf field values also.. either single acf value or comma seperated ?
prakashreddy.imduriParticipant1 year ago #35383Created the repeater field like this :
Getting Frontend like this :
Names arent showing up as category 1 and category 2
Backend settings: ACF Field and Repeated Field. Got only these 2 fields with the name I created for this filter
https://i.ibb.co/9WL5VcN/image.pngwpsolrKeymaster1 year ago #35384It should work indeed for repeaters, as described in https://www.wpsolr.com/guide/configuration-step-by-step-schematic/activate-extensions/acf-add-on/
prakashreddy.imduriParticipant1 year ago #35386I followed the steps to activate acf addon, and created repeater field with checkboxes, and using the filter type also as checkboxes.
When I am sending to Index. I am getting the value as 1, instead of actual label name
Added screenshot of database too
Can you help me figure out this issue?
prakashreddy.imduriParticipant1 year ago #35387ACF Repeater
prakashreddy.imduriParticipant1 year ago #35388I havent installed acf addon, seems it was causing the issue, also I re created new acf fields, now the data is sending to elastic fine. Now, its sending the label name instead of number 1.
prakashreddy.imduriParticipant1 year ago #35389I would need one add_filter, as I would be using text field for ACF with comma separated values, and send them to index as multiple fields same as acf does with repeaters.
It should create show as the same way if we are using a repeater.
Can we explode using comma and make it same was as a repeater field, any filter would be helpful. we have some limitation of using repeater as it creates multiple rows in db table.
prakashreddy.imduriParticipant1 year ago #35391Issue is resolved where I was getting number 1, but I would need a way without using the repeater field, but achieving the same output with acf text field with comma separated values.
This is how I wanted to send when using comma seperated text fields in acf without repeater, and these should be shown as individual filters as it works with repeater.
prakashreddy.imduriParticipant1 year ago #35393Instead of repeater ? or checkbox field within repeater as sub field ?
prakashreddy.imduriParticipant1 year ago #35394Sometimes, I would need around 500-1000 values also, so checkbox would create a long list inside the edit post page…
prakashreddy.imduriParticipant1 year ago #35396Okay, I am using the repeater field, but having issues with the filter display, its not getting filtered based on the search results, the filter checkboxes remains same even if the returned search doesn’t have the data.
You must be logged in to reply to this topic.