Forums › Forums › Search & Filter Pro › Search custom fields via S&F
Tagged: search acf custom fields
- This topic has 5 replies, 2 voices, and was last updated 8 years, 3 months ago by Trevor.
-
Anonymous(Private) August 11, 2016 at 3:36 pm #54317
Hi, I mentioned this issue on another thread but figured I’d start my own. I’m a little confused on how this works.
From my understanding I can only have 1 “search” field on S&F. I would like two search fields to search through separate custom field keys (Not ACF fields, just regular custom fields). The fields are “First name” and “Last name”.
I kinda understand I need to have two different search fields on ACF and then integrate that into S&F. I understand how to place the fields on the page…but not sure how to integrate it into the query to display results on results.php. Is this done in a .php file in S&F? If so, which file would that be?
Much thanks.
Trevor(Private) August 11, 2016 at 3:54 pm #54318Hi
You can have only one general ‘search’ field per form, as you say. It can search across the custom fields when you use Relevanssi.
If you are using the shortcode method, S&F uses it own results.php template; for other display methods the theme templates are used, so you would have to edit them.
The documentation shows how to set up and use a customizable results.php template:
-
AuthorPosts