Forums › Forums › Search & Filter Pro › Search results problems
Tagged: search results
- This topic has 24 replies, 3 voices, and was last updated 8 years, 7 months ago by Ross.
-
Ross Moderator(Private) March 28, 2016 at 2:03 pm #40670
Hey Gino
I am working on a solution, I’ll be in touch in the next hour or so to see if we can be ready in time.
Thanks
Anonymous(Private) March 28, 2016 at 2:24 pm #40673The problem is it’s not returning actual filtered results. It’s returning all posts, regardless of the search term, and no pages.
For example, if I search for “sovereign wealth funds”, a phrase found only on the About page, I get the same seven blog posts as you got.
What DOES seem to work, are the dropdowns. If I select an author, the blog posts that return are only by that author. If I select a category, the correct categories return.
So, it appears to be the search term box that is being ignored.
Ross Moderator(Private) March 28, 2016 at 2:37 pm #40675Hi Gino
Sorry I missed that.
I just tested, search is working fine for me!
So I went ahead, downloaded your copy of Divi, and your child theme..
Although without the correct configuration (and all your plugins) the layout was messed up, I got a the shortcode display method working no issue at all..
This leads me to believe there is something else in your setup is causing the issue.
Have you tried the standard disabling plugins 1 by 1 to isolate the issue?
I believe something else has a greedy
pre_get_posts
filter, which is also mistakenly modifying S&F queries – and removing the search term, and removing the post typepages
from the query.Very odd indeed, but no conflict between your theme & S&F.
Thanks
Ross Moderator(Private) March 28, 2016 at 2:37 pm #40676Are there any divi specific plugins I should be installing?
Anonymous(Private) March 28, 2016 at 2:45 pm #40678I will go back and try again, but I disabled all plugins last week and still got the same results.
However, you’ve got me thinking a bit. I’m pulling in the shortcode into the header.php in my child theme like this:
<div class=”et_search_outer”>
<div class=”container et_search_form_container”>
<div class=”searchcustom”><?php echo do_shortcode(‘[searchandfilter id=”2690″]’); ?></div>
<span class=”et_close_search_field”></span>
</div>
</div>Would that have anything to do with it?
Ross Moderator(Private) March 28, 2016 at 2:47 pm #40679No it shouldn’t….
Do you have WP_DEBUG enabled? There is chance something is being thrown there..
Instead of potentially lots of headache, why not try on a clean install, and install the plugins 1 by 1?
Thanks
Anonymous(Private) March 28, 2016 at 3:16 pm #40687Before I go with a clean install, I reverted the entire header.php file to the default and then placed the shortcode on the page in a temp block.
The default search works. Same results with the filtered search.
I turned on WP_DEBUG. There is an error shown in another plugin, but disabling that plugin makes no difference. Is there a log somewhere that we can review?
I don’t know if that helps at all, but thought I would give that a shot.
I will also do another WP install on a different test domain to see what that does.
-
AuthorPosts