Support Forums

Hey there, it looks like you've been redirected from designsandcode.com - as you can see we have a new home - read more

Looking for support? You can access the support system via your account.

Forums Forums General sf-option-active dont work

Viewing 10 posts - 1 through 10 (of 16 total)
  • Toby Weiss
    #105509

    Hi, I have a problem activating the option: sf-option-active

    I have this url
    https://stagingwp.jewsforjesus.org/articles/

    When I select the second field it activates

    https://stagingwp.jewsforjesus.org/topics/aaron-kasdan/

    But if select the third field, the option selected is not selected in the form search

    Some guide?

    Trevor Moderator
    #105519

    Hi

    I selected ‘aaron kasdan’ from the second field, and it does indeed re-direct to that URL, and on the page, the form also has ‘aaron kasdan’ selected. Then, in the third field I selected ‘Aaron Trank’, and the page URL then becomes:

    https://stagingwp.jewsforjesus.org/articles/?_sft_post_tag=aaron-kasdan&authors=aaron-trank

    It finds no results, despite ‘Aaron Trank’ having (8) next to it, which suggests that Auto Count is off, as is hide empty on the fields OFF.

    What is not expected in this? Can you explain what you expected?

    Toby Weiss
    #105992

    look: https://stagingwp.jewsforjesus.org/author/aaron-abramson/

    In the search engine the field of “All Authors”, should be selected the user: aaron-abramson / that is the one of the url, but it is not,
    https://ibb.co/fDBSfk
    But if you select any “All Topics” filter if it is activated in the search engine
    I do not understand why you do and author does not

    Trevor Moderator
    #106200

    Ah, I think I understand. All works as you expect EXCEPT authors?

    The problem is that the data for Authors comes from outside the post and postmeta tables (the tables that S&F uses for its cache) and is built independently of the cache, just as the form is loaded. This means that the list of Authors is not filtered by making selections in the other filters. This has always been the case in the plugin, but I am not sure if this behavior will be changed in the next major version (V3). It will require that we extend the plugin to include the users table.

    The only way to get around this for now is to make an ‘author’ custom field using a plugin (like ACF) that stores that data in the postmeta table.

    Toby Weiss
    #106304

    But if I select “All Categories”

    https://stagingwp.jewsforjesus.org/about-jews-for-jesus/who-we-are/about-jews-for-jesus/

    Neither the All Categories field is selected
    https://ibb.co/fvLUAk

    Trevor Moderator
    #106308

    I am not sure I understand. All Categories means nothing is selected, so the base page or archive URL would show?

    Toby Weiss
    #106328

    look
    https://ibb.co/jkM0i5
    https://ibb.co/hCz9bQ

    basicamente, es que uno esta seleccionado y el otro no, despues de elegir alguna opcion del campo “All Categories”, por que el segundo no se auto selecciona

    Trevor Moderator
    #106394
    This reply has been marked as private.
    Toby Weiss
    #106409
    This reply has been marked as private.
    Trevor Moderator
    #106489

    Hi

    So, I took a look inside the admin and I am now confused again. You are using the Select2 script for comboboxes so the real select is hidden. On the hidden select I can see the sf-option-active class is on whichever option I pick, including for All Categories.

    So I do not understand what is wrong and what you are trying to do.

    I see that you are using Divi, and a new feature of Search & Filter is that it will now work with the Divi grid builder. There is a post talking about this:

    https://support.searchandfilter.com/forums/topic/divi-blog-module-grid/#post-99184

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

The topic ‘sf-option-active dont work’ is closed to new replies.