Forums Forums Search & Filter Pro Second Search comes up blank

Viewing 10 posts - 1 through 10 (of 18 total)
  • Trevor
    #160142

    On the Display Results settings tab you have the Ajax Container set to #main. It needs to be set to .fl-post-grid for your plugin/theme.

    Anonymous
    #160350

    Thanks for your reply! I’ve made that change for the Ajax Container, but am still coming up blank for the second search. Any other ideas? Or have I missed something?

    cheers,
    JB

    Trevor
    #160383
    This reply has been marked as private.
    Anonymous
    #160393
    This reply has been marked as private.
    Trevor
    #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
    #160455

    Thanks 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,
    JB

    Trevor
    #160474

    OK, I will look again in the morning. There is an alternative method I can use with Beaver Builder.

    Trevor
    #160521

    I 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-themer-integration-info-on-documentaion-page/

    https://support.searchandfilter.com/forums/topic/beaver-themer-integration-info-on-documentaion-page-2/

    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>
    Trevor
    #160523

    I edited that last reply to add more detail.

    Anonymous
    #160832

    Trevor,
    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…

Viewing 10 posts - 1 through 10 (of 18 total)