Forums › Forums › Search & Filter Pro › Problems filtering ACF fields in a custom theme
- This topic has 3 replies, 2 voices, and was last updated 10 years, 1 month ago by Ross.
-
Anonymous(Private) October 15, 2014 at 8:02 pm #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.pngSettings & Defaults:
http://s27.postimg.org/zbq1ig5zn/Settings_Defaults.pngPost Meta:
http://s27.postimg.org/tqljdzhw3/Post_Meta.pngHere is my page template:
http://pastebin.com/nBAKU1p9Here is the before & after GIF of results:
http://s27.postimg.org/6psu7oz0z/results.gifRoss Moderator(Private) October 19, 2014 at 3:26 pm #6154Hey 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 onauto suggest
to find some values for it?Thanks
RossRoss Moderator(Private) October 21, 2014 at 4:21 pm #6244Ok 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
-
AuthorPosts