S&F with ACF problem

Forums › Forums › Search & Filter Pro › S&F with ACF problem

Tagged: 

Viewing 10 posts – 1 through 10 (of 10 total)
  • Anonymous
    #63527

    Hello,
    Thanks for great plugin.
    I have ACF plugin and created field “colors”: checkbox with values:
    red : Red
    blue : Blue

    I installed “Relevanssi” plugin, and set “Custom fields to index” to “all”.
    Then i created a new search form and enabled “Relevanssi”, and added “Post Meta” for this field with “Is ACF Field?”

    But there is no results!
    How to resolve it?

    Thanks.

    Trevor
    #63563

    In the form UI, what is the name of the meta key for that field? Is it _colors or colors? It should colors.

    Anonymous
    #63565

    Thanks for reply.
    It’s colors

    Anonymous
    #63567

    Note: after submitting the form, in the URL there is: “?sfid=6072&_sfm_colors=red”

    If you prefer, i can show you the problem via Skype or TeamViewer.

    Trevor
    #63569
    This reply has been marked as private.
    Trevor
    #63573
    This reply has been marked as private.
    Anonymous
    #63577
    This reply has been marked as private.
    Anonymous
    #63579
    This reply has been marked as private.
    Trevor
    #63582

    Hi

    I disabled the template option (where search.php was set as the template), which isn’t always a good thing to do, and then it works. Which means it is a template issue.

    So, I opened search.php and on line 30, I see this:

    <?php if( have_posts() && trim( $_GET['s'] ) ): ?>
    

    I have remarked that line out and added a new line 31 below it:

    <?php if( have_posts() ): ?>
    

    The original was checking if a theme search was being done.

    What do you need to do now?

    Copy the search.php file I edited (which is in the betheme theme folder and paste a copy of it into the child theme folder). That should preserve this changed copy.

    Anonymous
    #63705

    Thanks a lot 🙂
    Problem resolved.

Viewing 10 posts – 1 through 10 (of 10 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.