Forums Forums Search & Filter Pro Search by SKU

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #180257

    Hi there,

    How do we allow the plugin to search on the front end (user can search) by the SKU? At the moment it appears not to work for us?

    Kind regards,
    Cory

    Trevor
    #180263

    Do you mean in the text search box? If so, the SKU will be stored in a custom field, which will have a meta key name.

    The simplest way to make that meta data searchable in this way is to extend the WordPress text search (which is what our text field uses). Either use a plugin like the free Relevanssi plugin (which has an option where you can include one or more custom fields), our documentation is here:

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

    OR, avoiding the use of a plugin (but then you must be using a child theme), see this guide:

    https://adambalee.com/search-wordpress-by-custom-fields-without-a-plugin/

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