Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Category / Taxonomy filter not working properly
This topic contains 8 replies, has 2 voices, and was last updated by Ernest Marcinko 4 years, 7 months ago.
- AuthorPosts
- August 16, 2018 at 10:29 am #18977
Hi,
This login we provided is a first phase login to access the homepage. There you can see the search on left sidebar.
Click on the filter, unselect all the categories, and then check the video category and its sub category.
Search “portal”.
Search result shows the posts from faq category also which is not selected. Its the worng way result is showing.
Also it was not searching in the subcategorys of a selected category.
Let us know after you check the isseu.
August 16, 2018 at 11:04 am #18978Hi,
I cannot log-in to the back-end to check your configuration, but I think you are looking for this option.
By default the plugin displays items that are not related to the filter items, by turning off that option, these items will not be displayed.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 16, 2018 at 11:40 am #18979You cannot access this content.August 17, 2018 at 8:17 am #18985Hi
any update on the issue? Were you able to check the backend?
August 17, 2018 at 8:50 am #18986Hi,
Thank you, I was able to log-in. I could not have access to the posts page to check which categories they belong to, but I suspect the results there are not connected to the unchecked categories (probably only assigned to child categories only).
In this case, try the ‘At least one of the selected terms should match’ logic here: https://i.imgur.com/bDrNFwU.png
That will make sure, to restrict the results to the selected categories only, regardless if the rest is excluded, so that only items matching at least one of the selections will be displayed.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 17, 2018 at 8:59 am #18987Hi,
i tried selecting “At least one of the selected terms should match” option.
At that time its getting results for search term “portal” from video category.
But when other categories are selected, it still shows posts in video category only not the posts in other category.
I have enabled the posts and category options for the login. can you check again?
Thanks
August 17, 2018 at 9:36 am #18988Hi,
Thank you!
The part of the problem is, that for example the Technology category does not have any posts associated with it: https://i.imgur.com/hVjRAOM.png
Best,
Selecting/unselecting that checkbox therefore has no effect, and the logic cannot be applied.
This seems to be the case with other parent categories as well, like Videos and Technology, as they have no posts associated with them.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 17, 2018 at 9:44 am #18992so this plugin doesnt search in the sub categories in a selected parent category?
we cant disaply all the sub categories for out clients to click in the search. Thats why if selected parent category, we are looking for the posts in its sub categories also to get in the search.
Whats the chance?
August 17, 2018 at 10:44 am #18993Hi,
Unfortunately no, because those are not explicitly included. When a post is not within both the parent and child category, WorPress automatically assumes there is no connection to it. (otherwise it would not be possible to exclude them in the post editor)
There might be a solution though, using a custom code + using the At least one of the selected terms should match logic. In that case, all of the child categories will be added before the search process starts, if the parent is selected.
Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.