Forums Forums Search & Filter Pro Filter at category pages

Tagged: 

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

    Hello,

    I like your Filter & Search Pro Plugin very much. Think it is the most powerful out there.

    But I cannot figure out how to implement for category pages (category.php file), and applying the selected filters (e.g. post meta filter) only to the posts of this category the filter is added. I would like to stay at this page, so I’m using both shortcodes, for integration and results.

    I don’t want to add the category ID static in the configuration of the filter, it must happen during runtime based on the currently viewed category page.

    Please can you help me out…

    thank you very much in advance,

    regards

    martin

    Anonymous
    #26461

    Update:
    When using the setting “detecting the defaults from current page” for the category pages, the category will be selected in my category drop down. But the initial results shown are all and not only the ones of the category’s. This is a bit misleading.

    So is there a way to show theproper number of results from the beginning on. I also don’t want to hae the category selection on the category page….

    thank again
    martin

    Ross Moderator
    #26491

    Hi there

    Are you talking about the autocount numbers that are shown in the search form not reflecting the true counts from the current category?

    If so this is something I’m looking to add – it was an oversight when developing this “detect defaults” feature as it will built fairly quickly on request.

    In the meantime, I think the autocount values would be accurate if you modified the query using the filter mentioned here – so you would need to pass the current category into this filter:

    http://www.designsandcode.com/documentation/search-filter-pro/2-0-upgrade-notes/#No_more_pre_get_posts

    Thanks

    Anonymous
    #26501

    Hi Ross,

    thanks a lot for your help.

    Yeah I also found this as a workaround last night. So the initial values now are correct (counts, and also search result listings).

    But it seems that when I select a filter item on some post meta data, the added query filter is not used any more. The counts and listing results show results of all categories then. Is this because the setting “reload using ajax” doesn’t use the category.php file where I added the query filter? (I placed it there because I need to know the category ID…)

    If I deactivate using ajax to load results, the whole page is reloaded but no results cannot be found any more for the selected meta filter item, but previously it showed items (count), and there are items (i know). Why this? What am I doing wrong?

    Is there a solution. The only workaround I found is adding a category drop down, activating the function “Detect defaults from current page” for category, so the category is not been lost during further filtering. But I don’t want this drop down….

    so you have any ideas? :o)
    thanks
    martin

    Ross Moderator
    #26525

    Hey Martin

    I guess this is the best solution for now until I improve this function.

    What you could do is simply hide the dropdown using CSS so that its invisible to a user?

    This way a user wouldn’t see it and it would help retain this setting.

    Hope that helps as a workaround for now!

    Best
    Ross

    Anonymous
    #26626
    This reply has been marked as private.
    Anonymous
    #26633

    Hi ross,

    sorry to bother you again….

    Is it possible to use the function “Detect defaults from current page” also on a normal page, because I would need the search & filter at a page and only fitlering within a category. So the modified query should not get lost. So is it possible to pretend it’s a catgegory page….

    Could this feature be improved for the next release, so that the modification of the filter query is not get lost? :o) If yes when could it be?

    thanks a lot
    regards
    martin

    Ross Moderator
    #26863

    Its a good idea I’ll stick it on the todo list but can’t say anything on timelines just yet.

    Thanks

Viewing 8 posts - 1 through 8 (of 8 total)