Forums › Forums › Search & Filter Pro › Search options not working with ACF
- This topic has 12 replies, 3 voices, and was last updated 6 years, 1 month ago by
Trevor.
-
Trevor(Private) July 30, 2019 at 10:50 am #217575
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 ‘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?Trevor(Private) August 2, 2019 at 4:43 pm #217903I have tested a number of possibilities within the form settings and none of these explain the issue. I suspect, at this stage, that another plugin is conflicting. When it is safe for you to do so, can you deactivate all other plugins and test? If there are some plugins that have to be activated for the page to work, let me know which ones and I will try to make a judgement as to whether they are important to this test or not.
-
AuthorPosts