Forums › Forums › Search & Filter Pro › Second Search comes up blank
Tagged: beaver themer, post types archive
- This topic has 18 replies, 2 voices, and was last updated 7 years, 7 months ago by
Anonymous.
-
Trevor(Private) February 17, 2018 at 9:18 am #160429
WP Engine ????
This post may be relevant (I suspect):
https://support.searchandfilter.com/forums/topic/killed-query-errors-in-log/#post-64826
If you could try that code in your wp-config.php file?
Anonymous(Private) February 17, 2018 at 2:22 pm #160455Thanks for this tip. I am using WP Engine – and added that line of code to the wp-config.php file. Regrettably, the problem still seems to occur.
My instinct is that the problem still lies with Beaver Themer. The search works brilliantly on a normal page (http://tsas4.wpengine.com/affiliate-results/) but when I try the search on a Beaver Themer template (http://tsas4.wpengine.com/affiliate/ – which isn’t listed as a page on the backend of WordPress), the search goes blank.
thanks for your help,
JBTrevor(Private) February 18, 2018 at 7:01 am #160521I took a look at the Page Builder and I am not familiar enough with it to try my idea. It was to use the Custom Display Results Method and either hook in the PHP template, or use the
filter_next_query
shortcode [e.g.[searchandfilter id="1428" action="filter_next_query"]
]immediately before the grid). However, I can see that it is using Masonry to arrange the posts, and it may be that this will need re-triggering to re-arrange the posts each time a search is done.Using a different theme (Beaver Themer), one user (@Ash) has very kindly posted how he did it:
https://support.searchandfilter.com/forums/topic/beaver-themr-integration-on-taxonomy-archive/
https://support.searchandfilter.com/forums/topic/beaver-builder-themer-integration/
Other than that, you may need to talk to the (very nice and helpful) guys at Beaver Builder.
The javascript method required to be able to re-trigger Masonry (not specific to Beaver Builder) uses code like this:
<script>(function ( $ ) { "use strict"; $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ console.log("ajax complete"); // load your Masonry trigger code here }); }(jQuery));</script>
Anonymous(Private) February 19, 2018 at 9:05 pm #160832Trevor,
Thanks for looking into this. Reviewing the links you sent, I noticed that the problem may have to do with the Ajax loading. When I turned “Load results using Ajax” off, the Beaver Themer template (http://tsas4.wpengine.com/affiliate/) worked as expected. Yes! It’s fixed.Two follow-ups: on all pages with S&F, I’m now getting a slight scroll when loading the page. Not a deal breaker, but I do have the “Scroll window to” shaded out as I’m not using Ajax. Any ideas why this still happens?
Second, when I tried to create a similar type of search for the other Custom Post Type on the site (Working Papers), again using Beaver Themer and the “Post Type Archive” for results – it didn’t filter the results. The full list comes up with every search. Feel free to have a look: http://tsas4.wpengine.com/working-paper/
The only difference with this Working Paper custom post type search is that I have the Working Papers arranged by year, rather than all in one group (as with the fixed Affilates search). Would that make a difference?
Thanks for your help…
-
AuthorPosts