Forums Forums Search & Filter Pro Problems filtering ACF fields in a custom theme

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #5991

    Hello, I’m not quite sure how to set this widget up. I want to filter the search results by an ACF field named “games”. How should I configure the settings?

    ACF Field:
    http://s15.postimg.org/uu2t6pc4r/ACF_Config.png

    Settings & Defaults:
    http://s27.postimg.org/zbq1ig5zn/Settings_Defaults.png

    Post Meta:
    http://s27.postimg.org/tqljdzhw3/Post_Meta.png

    Here is my page template:
    http://pastebin.com/nBAKU1p9

    Here is the before & after GIF of results:
    http://s27.postimg.org/6psu7oz0z/results.gif

    Ross Moderator
    #6154

    Hey Nick

    I so did you add a meta field to the form UI? You need to add one of these, then as the meta key choose games….

    Then select the choice input tab, and click on auto suggest to find some values for it?

    Thanks
    Ross

    Anonymous
    #6234

    I have already done this as shown in the post meta screenshot above. The auto suggest provided all of the necessary meta tags.

    Ross Moderator
    #6244

    Ok so what have you done next to try to get it working on the site?

    What I would suggest next then is the following:

    1) Make sure this form has “use ajax” ticked, and “use shortcode” ticked.
    2) Then create a new page, and paste the two shortcodes for this S&F form in to the page (you can find the shortcodes by viewing all your S&F forms (just click Search & Filter in the nav of the of WP), the shortcodes should look something like:

    [searchandfilter id="824"]
    [searchandfilter id="824" show="results"]

    However your IDs will be different.

    Then visit this page, and see how the form is working.

    Can you let me know exactly what is happening in this scenario?

    Thanks

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