Forums Forums Search & Filter Pro Included ACF field in the 'search' field results

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #158012

    Hello,
    Is it possible to search the data from an ACF WYSIWYG field with the ‘search’ field type? I think by default it only search the_content()?

    I would like to use this as a generalised search box, with specific filters set as other fields.

    Thanks.
    Nick

    Trevor
    #158023

    Our plugin does not directly allow you to do text searches of individual Post Meta data. 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 it up and build its index.

    In the Relevanssi settings is a single entry setting to support custom fields.

    Anonymous
    #158025

    Ahh, ok. I did wonder if this might be a workaround. I tried https://wordpress.org/plugins/acf-better-search/ but this didn’t seem to affect the output.

    Might be a nice feature for the roadmap if it’s requested by others too.

    Thank you.

    Trevor
    #158029

    Did you try relevanssi and did it work?

    Anonymous
    #158059

    Well, yes and no!

    Yes, indexes the ACF field (verified by an increased term count and results via standard WP serach function). But no, it S&F search box doesn’t return the sames results.

    It’s seaching the correct CPT, but seemingly ignoring the ACF field. It does return some results based on post title terms.

    Anonymous
    #158061

    … Didn’t tick the ‘Relevanssi’ check box in S&F. Working now…. Many thanks for your help!

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