Forums › Forums › Search & Filter Pro › No results if any filter checked
- This topic has 32 replies, 2 voices, and was last updated 10 years, 3 months ago by
Ross.
-
Anonymous(Private) October 27, 2015 at 3:09 pm #28327
Hi, I added the search form on my page with the shortcode. I would like to use it to filter a custom post type I created. I added the two shortcodes in the page:
[searchandfilter id=”1428″]
[searchandfilter id=”1428″ show=”results”]
(obviously with my id number)If I visit the page I can see the posts, but if I click on any category I see no results, even if there are some posts in that category (and I can see counts in the search form)
The page is:
http://dev.mantellassi.com/prodotti/Thanks
Ross Moderator(Private) October 27, 2015 at 3:41 pm #28332Hi there
Can you enable auto count? (in the general tab)
Thanks
Anonymous(Private) October 27, 2015 at 3:58 pm #28336If I enable autocount the counts go to 0. But there are actually posts in some categories (e.g. http://dev.mantellassi.com/category/art/).
ThanksRoss Moderator(Private) October 27, 2015 at 4:02 pm #28339Hi Evelina
If the count goes to
0this means there is a problem with the cache building.Can you try to deactivate/active S&F, then rebuild the cache?
Thanks
Anonymous(Private) October 27, 2015 at 4:22 pm #28343Nothing changes 🙁
I also tried to work on simple articles instead of custom types. I created a test category http://dev.mantellassi.com/category/test/ and a test article in that category. But I’m getting the same result.
ThanksRoss Moderator(Private) October 27, 2015 at 4:27 pm #28344Hmmm it looks like something is interfering with the query.
Do you have any
pre_get_postsor custom code that modifies queries?If not, it might be another plugin interfering with the search query, try disabling all other plugins and see if the problem still persists?
Thanks
-
AuthorPosts