Forums Forums Search & Filter Pro Possible to have search box include ACF fields?

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #184872

    I have an ACF text field for “Report number” on a custom post type. I have a search and filter form that uses a search box and some filtering based on taxonomies. I want the search box to search the ACF fields as well as the title and content of the posts. Is this possible to do? I don’t want to have to add a second search box for the ACF field, that wouldn’t make sense from a UI standpoint.

    Trevor
    #184874

    You could install a plugin to modify the WordPress text search behavior (which is what we use for the Search box).

    WP Extended Search (and you will see the option in that to include your field)

    Or

    Relevanssi, see here for how:

    https://searchandfilter.com/documentation/3rd-party/relevanssi/

    Both are free to download and use. The former is easier to set up. There are other similar plugins, but Search & Filter does not work with all of them. Relevanssi we have tested as working, other users report that WP Extended Search also works.

    Make sure for ACF field names that you DO NOT select the one preceded by an underscore (each ACF field has more than one key name).

    Anonymous
    #184889

    That’s very helpful, thank you. I’ll give WP Extended Search a shot.

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