access search data

Forums › Forums › Search & Filter Pro › access search data

Viewing 5 posts – 1 through 5 (of 5 total)
  • Anonymous
    #253018

    Hello
    I’m using a ACF meta date to filter my Custom post types, it works.

    So I have 2 questions please 🙂

    1. Is it possible to access it in the search datas when i have finished a search ? (like Field Name etc ? )
    2. If i manage to do it, do you have a given function to cancel this filter ( in the form and URL ) and then reload the results ( ajax mode )

    Thank You

    Trevor
    #253043

    1. Yes, using PHP. If your results are being output by a page builder or grid plugin, this is not possible. Similarly, themes that are using frameworks, instead of traditional templates, you would need to use our Shortcode results method, which uses a PHP template.
    2. Only with very complex JavaScript, which even I would not attempt to craft.

    For #1, this post explains a bit for you. Note, the code would have to go INSIDE the Ajax Container in the PHP template:

    https://support.searchandfilter.com/forums/topic/acf-post-meta-fields-in-current_query-result/#post-249704

    Anonymous
    #253064

    Ok thank you Trevor for the #1 solution post related, i will look at it.

    For the #2, If a understanfd the extension doesn’t provide yet a function to clear a given filter in the datas returned ?
    In front-end, I mean the possibility to show selected filters with close icon to clear that particular filter …

    Trevor
    #253069

    That is correct, yes.

    Anonymous
    #253088

    ok thank you

Viewing 5 posts – 1 through 5 (of 5 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.