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 6 years, 8 months ago by Anonymous.
-
Anonymous(Private) February 16, 2018 at 12:52 am #160129
Hello,
I’ve just started using S&F and was able to build a sweet filterable search form for a list of faculty at a research centre: http://tsas4.wpengine.com/affiliate-results/
The search results load well for the custom post type. But if I try a second search using the search form that comes up on the results page (a Beaver Themer template), the results come up blank.
If it’s helpful to know, for “Display Results”, I’m using the “Post Types Archive” (Affiliate Archive).
Is this because this search method works well on a page (http://tsas4.wpengine.com/affiliate-results/) but not well on the Beaver Themer Template (http://tsas4.wpengine.com/affiliate/)?
any help is appreciated,
JacobTrevor(Private) February 17, 2018 at 9:18 am #160429WP 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>
-
AuthorPosts