• Resolved kulfoldingatlan

    (@kulfoldingatlan)


    Dear Support team,

    At first glance your filtering tool is impressive and seemingly really user friendly. Though I think I have stucked somewhere close to the last step. I have created a price filter for my webpage. It easily realise minimum and maximum value from my ACF and post list. I have put your filter and my loop grid into the same container. I have used the same query ID for both. Though when I’m changing the filter and clicking on submit button, that does not trigger any filtering in my database. Let me know, if any more details would need from me.

    Thanks for your support in advance!

    Zoltan

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Dara

    (@dara4)

    Hi Zoltan,

    Thanks for your message. After observing the HTML from the link you provided, I could see that the target selector is missing. What’s happening right now is that the filter knows what to filter, but it doesn’t know which element on the page it should update. The Query ID acts differently than the Target Selector.

    Here’s exactly what to do:

    Open the settings of your Posts / Loop Grid widget.
    In the Advanced tab > CSS ID or CSS Classes > add a class or ID:
    CSS ID: my-property-grid or
    CSS Classes: my-property-grid

    Now go to your Filter widget > On the first tab > Target Selector
    Enter the correct selector:
    If you used a CSS ID: #my-property-grid
    If you used a class: .my-property-grid

    The # for ID or the . for class is important.

    The Filter Query ID serves a different purpose. It is there to include loop custom query in the filter’s logic, so you can either keep it or remove it, if you experience any issues with the filter.

    After adding the correct target selector, the submit button should work as expected. Let me know how it goes.

    Regards,
    Dara

    Thread Starter kulfoldingatlan

    (@kulfoldingatlan)

    Thanks Dara for your quick response! It worked perfectly πŸ™‚ One last question: I wanted to use the searchbar widget, though utilizing the same logic it does not found anything. Do I need to put anything to placeholder? I have a list of real estates on my page, the filter does not filter on visual data. But actually, when I’m clicking on real estate details there are the description of the real estates in different loop, which loop is not visible on my main page. I would like to filter in that data. Can I somehow filter in that description database? I put the placeholder field the ACF description, but it did not work unfortunatelly.

    Plugin Support Dara

    (@dara4)

    Hi @kulfoldingatlan,

    For the search bar, you can follow the same process as with the filter. The BPFWE search bar also includes a Target Selector field, and if you assign it the same ID or class that you used for the filter, it will automatically link the loop with both the search bar and the filter.

    Just keep in mind that the search bar cannot search inside a custom field. It uses the default WordPress s parameter, which means it usually searches in the post title, content and excerpt. If you need to search in a custom field you can use the “input field” option under “field type” in the filter.

    Another option is to output the custom field value inside the post content, but hidden with CSS. Since WordPress includes the full post content when performing a search, this allows the search bar to match that value without showing it on the page.

    Let me know if you want an example of how to output the hidden field or if you need further assistance.

    Dara

    Plugin Support Dara

    (@dara4)

    Hi @kulfoldingatlan,

    I am closing this thread for inactivity since it’s been over a month. Feel free to open a new thread if you have any further questions about filters or search functionality.

    Regards,
    Dara

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.