Forums › Forums › Search & Filter Pro › No results
- This topic has 9 replies, 2 voices, and was last updated 10 years, 6 months ago by
Anonymous.
-
Ross Moderator(Private) January 21, 2015 at 7:45 pm #10734
Hi Marc
Do you have a link I could look at? You can post private messages here.
I would suggest that you test with displaying your results as shortcode – only for the purpose of testing whether you get correct results.
If you do, then we know there is something interfering with the archive method which shouldn’t be hard to fix.
Thanks
Anonymous(Private) January 23, 2015 at 9:17 pm #10882Hi there,
thanks for the quick answer.
i don’t really get what you mean by ‘displaying your results as shortcode’anyway, i set up a page for you:
http://www.quesecueceenbcn.com/test-sf/Ross Moderator(Private) January 27, 2015 at 3:40 pm #11008Hey Marc
It seems like your theme is not using the loop correctly – or for some reason it uses a custom query on your results page overwriting the loop…
S&F uses the loop (naturally, its WordPress standards) – so you must make a modification to the template that is being used to display results..
Take a look at these threads which have recommendations on how to do this:
https://support.searchandfilter.com/forums/topic/not-working-with-some-themes/#post-7505 (you are not using a shortcode to display results) – this is slightly out of date but still relevant
Let me know how you get on.
Thanks
Ross Moderator(Private) January 27, 2015 at 8:03 pm #11028Hey Marc
Can you try with 2014 and using their template? I know this 100% works and 2015 should too.
Also, in regards to your template above, it is not really a compliant template as it need to call the wordpress functions for header and footer (http://codex.wordpress.org/Function_Reference/get_header / http://codex.wordpress.org/Function_Reference/get_footer) – these must be used so scripts are loaded properly.
If the above does not work, then I would also recommend disabling all other plugins to see if we can find a problem there.
Thanks
Anonymous(Private) January 29, 2015 at 4:19 pm #11141Hi Ross,
Ok, I got something. I went back and forth activating and deactivating all of the plugins, and the problem is with The Events Calendar. When this plugin is active, Search & Filter can’t find results, otherwise works as expected.
Any experience/knowledge on that?
(Let me remark that S&F does not return results independently of marking or not the Events custom post type for listing results in the General Settings of the Edit Search Form page)
Ross Moderator(Private) January 29, 2015 at 7:50 pm #11151Hey Marc
It sounds like the events plugin is modifying the main queries using pre_get_posts .
Sometimes a loose hook on
pre_get_posts
means that all queries are modified by mistake instead of only when its needed.For example, in the early stages of this plugin, the settings on
pre_get_posts
were too slack and it interfered with some user’s navigation being shown (as that is another query that can be modified using that function).My suspicion is that this plugin may be too loose and not restrictive on which queries it modifies.
I would check to make sure you are using the latest version of that plugin (as well as S&F) and if possible ask them if this is the case.
The thing is, if you were to add a pre_get_posts yourself (if you were customising your theme for example) I believe their plugin may also interfere here.
They may have a workaround or a solution for this in their docs or support forums so I would check – as this would be a common issue.
If I find the time I will have a look at that plugin and do some tests but a bit bogged down atm.
Thanks
-
AuthorPosts