Forums Forums Search & Filter Pro Configuration questions

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #86081

    Hi!

    Purchased and installed yesterday, so far so good, very intuitive and well organized, real pleasure to work with compared to some other plugins I’ve tried. Good job!

    Few questions:

    1. SORTING. Works great as long as I put it in widget along with other filters. Is there any way to have it as a separate control embedded in a page (not in a sidebar widget)? Tried creating a separate search form to put on top of my archive template via shortcode but got this error:

    Error: There are 2 Search Forms set to use Post Type Archive display mode for the post type Tracks – you may only have 1

    2. Is this possible to TOGGLE individual filter sections? That is, to hide or open the list of checkboxes for each individual taxonomy? I have quite a few taxonomies with multiple terms, so the side bar gets very long. I prefer checkboxes to multi-select for design and usability reasons.

    3. AJAX. Works great but I’m using a shortcode in my archive template. Looked at the FAQ but still somewhat confused. Any other resources / example I could look at?

    Thanks much!

    Trevor
    #86128

    Hi

    That’s a long post with many questions!! 🙂

    1. All form elements in this version of Search & Filter (v2.x) need to be within the one form. We intend to change this for v3, but that is some months away right now. You can only have one form per Post Type Archive.

    2. You would need to use custom javascript to do this. Again, this is something we may look at for the next major release.

    3. I would need some more detail as to what you are doing and what is not working. What theme is this? What does the template file look like with the shortcode (for the form I assume) in? You can post code here (in code tags), or post it as a GIST on Github.

    Anonymous
    #86166

    Thanks for the quick response.

    Re: 1 & 2 I can wait for the next release, these are nice to have but not crucial for the launch.

    Judging by your answer I assume that it also won’t be possible to show the list of active filters in the archive page? That is, on top of the page the user would see that he’s filtered by category 1 and 2 and could quickly remove some of the filters? Unless there is a shortcode for that?

    Re 3: In short, my archive page features a 3rd party media player (by waveplayer.info) rendered via the shortcode. While AJAX refresh does give me all the posts I expect, the player isn’t rendered properly. I assume it’s missing the js / styles it needs.

    While I understand how it works in principle, I guess I just need a bit of a push in the right direction. Specifically, how to identify what the waveplayer plugin needs and how to include it within the AJAX request.

    Thanks in advance!

    Trevor
    #86183

    It IS possible to show the list of active filters in the archive page, but very difficult and involves custom coding. Making it possible to then click to remove …. even harder.

    This might be one of the things that Ross is considering for V3.

    Ah. You need to re-trigger the js to get the media player working after our Ajax has finished. You would need the co-operation of the plugin author of the media player, but essentially, you would add a custom js script like this:

    (function ( $ ) {
      "use strict";
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        console.log("S&F JS ajax request finished");
        // ** here you need to reload your media player script **
      });
    }(jQuery));
    Anonymous
    #86194

    Thank you, that’s very helpful.

    The last question for today 🙂

    Any way to make the filter recognize WordPress native search results? I have a search box on the front page and would like my users to do a broad search first and then filter down the results when they get to the archive page.

    Based on what you told me so far, my guess this isn’t something available out of the box, since I can’t have a separate filter pointing to the same post type archive but if you have any ideas how to pull this off, I’d appreciate that!

    Trevor
    #86198
Viewing 6 posts - 1 through 6 (of 6 total)