Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Compatibility with ACF: Better Search?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Lindsay Sterling
    #222415

    I am using ACF: Better Search plugin (https://wordpress.org/plugins/acf-better-search/) to enable ACF field values to be searched in native WP searches. This works with the default search bar, but does not work when adding a search bar in a Search & Filter Pro form. I thought this was a native WP search bar, but I guess there is something different about it?

    Is there something I can do to have a specific ACF field included in the search, either with this plugin or with a custom function?

    Trevor Moderator
    #222438
    This reply has been marked as private.
    Lindsay Sterling
    #222797
    This reply has been marked as private.
    Lindsay Sterling
    #222801

    Update. Thank you Trevor for your suggestion of Relevannsi. As mentioned in my private reply, I am unable to use Relevanssi for different reasons. But I found the following code, which worked. This code includes specific ACF fields in the main WP search and is compatible with Search & Filter Pro. (I now no longer need to use the ACF Better Search plugin.) Just sharing in case anyone else has this issue and can’t use Relevannsi:

    https://gist.githubusercontent.com/fiskhandlarn/f6f86c99e59f62d72ac2ce10be12dc1a/raw/9f46e18c6bf9f1e8738040d6002a0fb4f6f3bd44/custom-search-acf-wordpress.php

    Thank you!

    Trevor Moderator
    #222809

    Thanks for letting me know. I will close this thread for now.

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

The topic ‘Compatibility with ACF: Better Search?’ is closed to new replies.