Forums › Forums › Search & Filter Pro › Search results not reading the correct format
Tagged: search format, search results, search template, search.php
- This topic has 25 replies, 3 voices, and was last updated 4 years, 6 months ago by Anonymous.
-
Anonymous(Private) May 7, 2020 at 5:07 pm #243062
Hello,
After updating my theme to the latest version “Newspaper V10” the search results in the S&F appears like boxes not in a list format for Search.php format. missing the excerpt info and results should be 1 per line.
Below after update
https://cairogyms.com/?sfid=32718&_sft_category=heliopolisNormal search template like below
https://cairogyms.com/?s=fitnessPlease advise.
Thanks,
Karim
Trevor(Private) May 11, 2020 at 11:49 am #243280I can see/guess what is going on. In this new version of Newspaper, the theme is looking to see if there is an actual search string, probably using code like this:
if (get_search_query() != '') {
IF there is no theme search query, the search page uses archive-loop.php. This is what you see from our search results.
However, if there IS a theme search query, it uses instead sidebar.php
I cannot see, in search.php, how it is doing this, but, that file calls a theme function, which I suspect is calling another template. But, I cannot see where from, and I do not know enough of this theme to say.
It is not our plugin that is doing this though, but the theme, and over that we have little control.
What you could do is to use WPBakery Page Builder instead to make your search results page, using this guide (and the additional extension plugin you can download from there:
https://searchandfilter.com/documentation/3rd-party/wpbakery-page-builder-formerly-visual-composer/
It would appear that the latest changes to the newspaper theme mean that you can no longer use the ‘As an Archive’ display results method.
-
AuthorPosts