- This topic has 12 replies, 2 voices, and was last updated 9 years, 11 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
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy