Forums Forums Search & Filter Pro Can't get results to filter

Viewing 6 posts - 11 through 16 (of 16 total)
  • Trevor
    #166461

    In post #166436 you said: but it says the shortcode must be included, where would I put that?

    That code should work. I and other users have sued it many times. Maybe your div code doesn’t like being loaded that way?

    Anonymous
    #166468

    Ah I see – it says it on the display results tab – This should be the Full URL to a page/post where your results can be found – must contain the shortcode.

    Perhaps I’m putting the code in the wrong place – I put all of the code contained in the producer-list div inside the code you posted.

    Anonymous
    #166489

    Ok, I’ve sussed out where to put the code from post #166438, so that issue is all sorted and not to worry about the shortcode being included in the URL, I guess I don’t need to do that as I’m not using the shortcode option.

    So, back to these queries:
    It still shows all of the taxonomy terms rather than just showing the ones relevant to the search results, it there a way to only show the taxonomy terms that have filtered results in?

    Also, at the top of the page, just above the search form I need it to show the current filter that is active and be able to clear the filters by clicking on CLEAR ALL – I did have a look through the forums so I believe this is possible, but I didn’t really understand now to implement this.

    Trevor
    #166792

    Due to the way you are making the results with those titles, you would have to write some extra custom javascript to check if those titles have content (children) under them, and hide them if they do not.

    Anonymous
    #166832

    Yes, I thought that, except I was trying to do it with PHP last week, I’ve just tried with javascript to no avail.

    What about this – can you point me in the right direction please?
    Also, at the top of the page, just above the search form I need it to show the current filter that is active and be able to clear the filters by clicking on CLEAR ALL – I did have a look through the forums so I believe this is possible, but I didn’t really understand now to implement this.

    Trevor
    #166839

    For both questions, I am not skilled enough to do this, and this level of customization is not covered by support. You would need to use a third party freelance coder.

    With some custom coding, displaying the current filters is possible, but it is not easy. We plan to make it a feature of V3 (in development). But clearing them singly is not so easy. To clear them all (to reset the form), you would need to have a button that calls the form reset. That is possible. See this (and the post it refers to):

    https://support.searchandfilter.com/forums/topic/link-markup-for-reset-filter-button-that-is-outside-of-the-ui-markup/

    This documentation may be what you are looking for (note, if you are using Ajax to refresh the page, any such output of the query needs to be inside the Ajax container):

    https://www.designsandcode.com/documentation/search-filter-pro/accessing-search-data/

    There are many snippets also on this forum. Try this search:

    https://support.searchandfilter.com/forums/search/current_query/

    You need to fetch the values from the taxonomy form fields. Be aware that some search terms will be held as arrays, and not single strings/values.

Viewing 6 posts - 11 through 16 (of 16 total)