Forums Forums Search & Filter Pro Display results method: Custom not working.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Anonymous
    #84897

    Hey,

    I know there is this bug, but I now also have a problem when adding the shortcode to a custom page template. All my other pages work fine, but they are all post archives.

    I have the following setup. I have a page called events-open with a page template page-events-open.php where I have a custom loop. The Display results method: is set to Custom and the Results URL: is set to http://www.mydomain.com/events-open/.

    Nothing happens when using the filter, it does scroll to the container, but nothing is being filtered. The weird thing is I have the same setup on the post archive of that same post type, with the same HTML structure and template parts and everything runs smoothly there. Is this something that is also broken in this specific version (Version 2.3.0)?

    Hope to hear from you,

    Trevor
    #84921

    What hook did you add to the custom page template to allow this to work? Have you used the custom method before?

    Anonymous
    #84926

    What do you mean with hook. No I did not (I think), all my other pages are default WordPress post archives and they all work fine.

    This is what the settings look like

    Anonymous
    #84928

    This is what the settings look like

    Trevor
    #84931

    The idea of the ‘Custom’ method is that in the page template for the results page is the necessary php code to get S&F to filter. I can’t for sure remember the code right now, but this post might help:

    https://support.searchandfilter.com/forums/topic/manually-add-sf-to-an-existing-query/#post-81577

    Anonymous
    #84934

    @Trevor amazing adding this to my query worked 'search_filter_id' => 1234,.

    Because everything else works so smoothly and didn’t need much configurartion, maybe you could add a notice to the docs here.

    Manually add S&F to an existing query and then simply supply the URL where this can be located. [link to docs]

    Like you did with infinity scroll settings. I had no idea that there needed to be more configurations to get it to work.

    Thanks for the help

    Trevor
    #84944

    The custom method is really aimed at theme developers, but I will suggest this. I will close this thread now.

    Ross Moderator
    #85292
Viewing 8 posts - 1 through 8 (of 8 total)