Forums Forums Search & Filter Pro Results not displaying until a selection is made

Tagged: 

Viewing 10 posts - 21 through 30 (of 32 total)
  • Anonymous
    #226943

    But only one checkbox appears, while my group field has 4 checkboxes.

    Trevor
    #227013

    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 ‘Sector’):

    #1 _sector
    #2 field_5dd2af0078f2f
    #3 sector

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

    HA nice catch!
    Now the filter checkbox are the right ACF ones.
    But… Wait for it… There is the same issue with the first loading with no checkbox selected. No content appears, at first.

    Trevor
    #227264

    I am checking the code for index.php

    There appears to be an error on line 70, where there is an ending </div> and this section be an ending </section>:

    https://www.screencast.com/t/UPF5vvvZpF

    I will fix this now. I then added this new line to the index.php file:

    https://www.screencast.com/t/ZPDdQX7iN6O7

    Can you test that?

    Anonymous
    #227358

    Thank you, Trevor. All the content is shown by default now. Also, the category filter works well with different post types too.

    Trevor
    #227369

    Thanks for letting me know. I will close this thread for now.

    Anonymous
    #227391

    I noticed that after 2 selections the filter stops working and shows only events.

    Trevor
    #227401

    The issue is almost certainly with the theme template files. There is a lot of logic in there what to show and what not to show. You would need to ask the theme author how to stop it from restricting the index page to just events, which is what their code is trying to do.

    Anonymous
    #227418

    Seems to be working now. Just picking the wrong Ajax container class.

    Trevor
    #227420

    Is it OK for me to close the thread now?

Viewing 10 posts - 21 through 30 (of 32 total)