Forums Forums Search & Filter Pro Filter Results Not Correct

Viewing 10 posts - 1 through 10 (of 11 total)
  • Anonymous
    #96041

    Hi, I’m currently working on a site for a client who has many posts categorized by brands and ratings. I’m trying to setup a filter that allows posts tagged with 1 Star, 3 Stars, and 5 Stars to be filtered via checkboxes.

    Essentially, I’m wanting to setup what you have in your movie demo with the genre checkbox in the sidebar, but with stars instead of genre and products instead of movies.

    I’m encountering a couple problems (admittedly probably user error):

    1. When I select a checkbox in the sidebar for say 5 Stars, the results show all of the posts despite a test post being tagged 5 Stars and having a (1) next to the checkbox that displays counts.

    2. When the results come up that show everything, it’s no longer in the layout of the previous archive page with the sidebar, the result is a full-width archive page layout instead. Like your movie demo, I’d need the sidebar to stay and have the search happen within the page so you can change the filter options, not take you to a completely new place without any sidebar.

    Any help is greatly appreciated. Let me know if there’s other information you need.

    Trevor
    #96123
    This reply has been marked as private.
    Anonymous
    #96236
    This reply has been marked as private.
    Trevor
    #96366

    Hi

    I have installed a development version of S&F Pro v2.3.3 that has a new function in it. If you now edit the archive.php template you will see a new line added:

    do_shortcode('[searchandfilter id="7393" action="filter_next_query"]');

    Your theme was hijacking our query; this new code allows us to hijack it back!!

    What would be a good idea is to copy that archives.php file and name it search-filter.php and then in your form settings set the template being used to that.

    Our developer wrote this new function for Jupiter theme, a great bit of luck. As it happens, it works well with other themes as well.

    Anonymous
    #96378
    This reply has been marked as private.
    Trevor
    #96382

    Do you know which (php) template that page uses?

    Anonymous
    #96402
    This reply has been marked as private.
    Trevor
    #96512

    This may seem a silly question, but you appear to have Visual Composer and the S&F VC extension installed, so why are you not using these, as the page you showed me also uses VC? So, what I have done is to create a Trevor test page setup using a Search called Trevor Test?

    Ignore the poor appearance of the grid, that can be edited in Visual Composer grid editor.

    Anonymous
    #96754

    No, that’s a fair question. I was frankly not entirely sure if it was the right solution to my issues, but left it installed for the time being in case I needed it later.

    The reason I wasn’t sure is because it seemed specific to ‘Post Grid’, whereas in VC we’re using the ‘Blog’ component that has the specific thumbnail layout we want, but also might only be part of Artbees modified VC that they use for their themes (I’m not familiar with stock VC so don’t know what’s normally included).

    At this point, it might make more sense for me to just use ‘Post Grid’ and try to style it in such a way that it’s similar to the thumbnail.php layout from the ‘Blog’ component.

    I did notice in your test page, and the one I re-created, that when you select one of the filters it zeros out the other two options. So in the test page it shows 5 Stars (1) 3 Stars (1) 1 Star (1), but when you select one of the filters the other two have (0) for some reason, thus resulting in an inability to have more than one option selected. I assume this isn’t expected behavior?

    Trevor
    #96760

    That would be a setting in the form. Let me quickly look.

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