Forums Forums Search & Filter Pro acf data in search box

Viewing 6 posts - 1 through 6 (of 6 total)
  • Trevor
    #260624

    You can only have one general text search field per form, one form per results page. The Search & Filter Pro Text Search field uses the standard WordPress search, so looks only in the Post Title and Content. To help you control this better, on the form’s Advanced settings tab you will see 2 settings for Relevanssi.

    The documentation for this is here:

    https://www.designsandcode.com/documentation/search-filter-pro/3rd-party/relevanssi/

    You would need to install and activate the free Relevanssi plugin as well.

    Then set Relevanssi up and build its index (make sure it is indexing the desired post types, custom fields AND any taxonomy that you want to search).

    Anonymous
    #260628

    Hi! Thank you! Sorry I forgot to mention my situation. I already have Relevanssi installed and built up the index with my custom post type as well as its acf data.

    However when I type in something like “audi 0 down” I want all my audi cars with $0 down payment to show. It doesn’t work so I was wondering if you could guide me or if you can tell me if its even possible to make that search work.

    Trevor
    #260630

    Ah. It may not be able to match that. Most search engines do not match strings (the ‘0’) under 3 or 4 characters length, otherwise they would often return all posts.

    Anonymous
    #260636

    I see. Can you give me some examples of what acf data searches might work? It can be in any scenario, just so I know.

    Thank you!

    Trevor
    #260640

    Just try longer strings. So audi 1000 down might work. This isn’t restricted to ACF fields. It can be any data source. It does depend on how you set the string matches in Relevanssi of course.

    Anonymous
    #260646

    Just tried some longer strings and they worked! Pretty cool, thank you.

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