Forums Forums Search & Filter Pro Search options not working with ACF

Viewing 10 posts - 1 through 10 (of 12 total)
  • Trevor
    #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
    #2 field_5d3eeab5af1f0
    #3 theme

    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
    #217608

    Thanks 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!

    Trevor
    #217610
    This reply has been marked as private.
    Anonymous
    #217635
    This reply has been marked as private.
    Trevor
    #217675
    This reply has been marked as private.
    Anonymous
    #217752
    This reply has been marked as private.
    Anonymous
    #217760

    Trevor – Question regarding your notes on selecting the correct ACF meta key:
    https://support.searchandfilter.com/forums/topic/search-options-not-working-with-acf/#post-217575

    In 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
    #217762

    I believe so, yes.

    Anonymous
    #217799
    This reply has been marked as private.
    Trevor
    #217903

    I 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.

Viewing 10 posts - 1 through 10 (of 12 total)