Forums › Forums › Search & Filter Pro › Filter at category pages
Tagged: category.php
- This topic has 7 replies, 2 voices, and was last updated 10 years, 4 months ago by
Ross.
-
Anonymous(Private) October 3, 2015 at 10:49 pm #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(Private) October 3, 2015 at 11:45 pm #26461Update:
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
martinRoss Moderator(Private) October 5, 2015 at 9:27 am #26491Hi 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:
Thanks
Anonymous(Private) October 5, 2015 at 10:56 am #26501Hi 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
martinRoss Moderator(Private) October 5, 2015 at 3:05 pm #26525Hey 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
RossAnonymous(Private) October 6, 2015 at 4:52 pm #26633Hi 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
martinRoss Moderator(Private) October 8, 2015 at 3:53 pm #26863Its a good idea I’ll stick it on the todo list but can’t say anything on timelines just yet.
Thanks
-
AuthorPosts