Forums › Forums › Search & Filter Pro › Search options not working with ACF
- This topic has 12 replies, 3 voices, and was last updated 5 years, 3 months ago by Trevor.
-
Anonymous(Private) July 30, 2019 at 10:15 am #217566
Hello!
I have set up ACF criteria and set up a test search with some of the criteria, but the outcome is that the choices return: field_5d3eeab5af1f0
You can have a look here: https://nordsip.com/test-search-page/
There must be something I am missing. Could you please help?
Thanks!
Aline
Trevor(Private) July 30, 2019 at 10:50 am #217575In 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 ‘Theme’):
#1
_theme
#2field_5d3eeab5af1f0
#3theme
In our Post Meta form object 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.
Anonymous(Private) July 30, 2019 at 1:31 pm #217608Thanks Trevor!
Something changed, so this is definitely the right track. However, the search indicates (0) posts identified (I did update the cache twice to make sure). There are definitely several posts where I have selected those options. I have also changed fields so see if it worked with other fields, but it didn’t.
Could you tell me what this could be due to?
Thanks again!
Anonymous(Private) August 1, 2019 at 11:31 am #217760Trevor – Question regarding your notes on selecting the correct ACF meta key:
https://support.searchandfilter.com/forums/topic/search-options-not-working-with-acf/#post-217575In our Post Meta form object Meta Key selection list, you need to use key #3
Should we also be using the non underscore keys when we’re modifying the query via
sf_edit_query_args
too? -
AuthorPosts