- This topic has 12 replies, 2 voices, and was last updated 11 years, 3 months ago by .
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Results page identity incorrect
Okay, your suggestion sort of worked… though it set ALL pages to think it they were a search 🙂
So I adapted to…
if(isset($wp_query->query['sfid']))
{
$query->is_search = true;
}
… which sets the search and the appropriate body classes etc so all my layout is correct.
It didn’t solve the meta Title issue, so I went back to first principles and deactivated all my other plugins, and the Title issue appears to be related to WordPress SEO (Yoast). For some reason it thinks the S&F search results pages is a blog page (not even a search page – as I tried adapting the search meta Title via that plugin and it was ignored).
Not sure there’s anything you can do about that, so I guess this is just a flag to be aware of that.
So only S&F issue now is when in AJAX mode the results count doesn’t update… but if I revert to non-AJAX this isn’t a problem so I’ll probably do that, so again just consider that a flag.
Thanks for all your help on this.
Cheers
John
PS – So you know – the custom template entry was saving okay.
PPS – When you said the ‘right way would be to modify the template’ what did you mean for future reference?
Hey John
Just to let you know the next update will have an option to force is_search to true on all searches so feel free to update 🙂
Thanks
Update is now live – click the advanced tab in “settings & defaults”.
Thanks