Forums › Forums › Search & Filter Pro › Combine a keyword search with user’s choice of custom field values
Tagged: acf, checkboxes, custom field
- This topic has 21 replies, 2 voices, and was last updated 5 years, 1 month ago by
Trevor.
-
Trevor(Private) July 29, 2020 at 9:18 am #254272
So, I expect to see a search form with the search text box and the options for that field, plus maybe a submit button. If this is a Post Meta field, I would expect it to be set like this:
https://www.screencast.com/t/EqZ7jI4m
Notice the Search Operator set to OR.
If this does not work, are you able to send me a live link/URL to your search page so I can take a look?
Trevor(Private) July 29, 2020 at 12:07 pm #254332I see the error. In selecting the Meta Key name, note a ‘gotcha’ with ACF ….
… it makes 3 meta keys per field, like this (in this example for a field named ‘land’):
#1
_land
#2field_52f0fc4334f52
#3land
In our Meta Key selection list, you need to use key #3, without the underscore at the start of the key name. If you choose #1 by mistake, in the field choices you will see the name of #2.
-
AuthorPosts