Forums › Forums › Search & Filter Pro › Simple S&F with ACF
- This topic has 18 replies, 1 voice, and was last updated 7 years, 8 months ago by
Trevor.
-
Anonymous(Private) April 16, 2017 at 9:09 pm #103326
Hi,
Just start my site with some simple data using ACF. I just want to have a simple S&F page to track my post through custom fields (similar to your Demo on Movie Reviews).
I create a search form, display results as Shortcode and put the code in a post. It does not work well.
http://platform.progressivestandards.org/test-search-123/Could you help me to set the form. I just want it works like the Demo.
ThanksTrevor(Private) June 27, 2017 at 10:49 am #117002Functionality
These are custom fields, and you want to search using the text search box? The default functionality of the S&F text search box is to search only in The Post Title and Post Content. Not any Taxonomy or Custom Fields. This reflects what WordPress does.
If you want to use free Relevanssi plugin’s search engine and cache instead of the standard WordPress textual search engine, then Relevanssi has settings that allow this. You have to enable searching of the specific taxonomy(ies) and/or the custom field(s) in Relevanssi’s settings and then build the Relevanssi cache. You have to tell S&F to use Relevanssi in the S&F form’s advanced settings. See our guide here:
https://www.designsandcode.com/documentation/search-filter-pro/3rd-party/relevanssi/
You may (some users say it works, some say not) also try the free WP Extended Search plugin to do much the same, but no special support is needed in S&F for this plugin, AFAIK.
Appearance
As to CSS, this varies considerably according to your theme. Some themes have a place to enter Custom CSS, some let you do this in the Customizer, and for some you need to manually add it using code in the child theme functions.php file, or to use a plugin. So, you might be able to go to Appearance > Customize > Additional CSS* and add the CSS, OR
you could install the Simple Custom CSS plugin and go to Appearance > Custom CSS instead.Anonymous(Private) June 28, 2017 at 12:24 pm #117211Hellow Trevor,
Just realised that the Filter result react funny after clicking on a check box. I think it conflict to another plugin Visual Composer.
Are you aware of it?
Do you know how to fix that issue?screenshot: https://ibb.co/fUd9hk
Cheers
Anonymous(Private) July 10, 2017 at 3:18 pm #119719I installed Relevanssi and built the index but it did not work with ACF. It should have replaced the default Search straight away.
Is there any trick of using this plug-in?When I deactivated it and embedded the code from
https://adambalee.com/search-wordpress-by-custom-fields-without-a-plugin/
, it worked nicely. Unfortunately the default Search works with ACF but not the Search form you provide.Is there any chance I can “clone” the WP Search to the S&F search form?
Thanks
-
AuthorPosts