Forums › Forums › Search & Filter Pro › Searching on meta fields via text search (woocommerce)
- This topic has 3 replies, 3 voices, and was last updated 7 years, 11 months ago by Trevor.
-
Anonymous(Private) March 2, 2017 at 3:02 pm #94010
Hi we are trying to construct a search form to allow an individual to search through woocommerce products by product name, description and associated meta data. We have successfully created a form containing a Search Field, Taxonomy (Product Categories – product-cat), Post Meta (location) and submit. However we ideally require the text search to query the extended meta data such as ‘coursecode’, ‘startdate’ ete. The type of search query is likely to be something like ‘art course in amersham’ is this something you could advise us on?
Trevor(Private) March 2, 2017 at 3:20 pm #94020Searching custom fields and taxonomies from the textual Search box is possible if you install the free Relevanssi plugin, set it to do that (the box to ask it to search custom fields needs the word
all
in it). You then enable support in the Advanced settings tab of the form.Trevor(Private) March 3, 2017 at 5:01 pm #94377A standard WP search from a search (text) box looks only in Titles and Content. It does not look in Taxonomies, Custom Fields or Excerpts. Sometimes it does not look inside shortcodes either, which can be an issue if you use a page builder like Visual Composer. Plugins like Relevanssi and WP Extended Search enable you to choose what part of posts ARE indexed.
This page in the documentation applies.
-
AuthorPosts