Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Whole page reloads using shortcodes

Viewing 10 posts - 1 through 10 (of 15 total)
  • iglooo
    #251414

    Long story short: I was working on a developement site on my computer with this plugin using the “shortcode” filter, and it worked well. I recently moved the site to a live developement site on my server, but had security conflicts with my existing site (this is a redesign of an existing site), so had to set my permalinks to “plain” (eg. https://example.com/dev/?p=123). However, when I try using the filters, my entire page is reloaded, not the “search results” portion. Does it have something to do with my permalinks?

    Trevor Moderator
    #251467

    It might be the Permalinks, yes. Using Postname is much safer. Do you have the Results URL correctly set?

    iglooo
    #251605

    I believe so. You mean the url in the general settings of the dashboard, correct? The “test” site that I’m working on is housed in a folder within the site’s root folder. In other words, the existing site is here:

    example.com

    and the test site that I’m redesigning is here:
    example.com/dev

    That’s what my url is set at.

    iglooo
    #251628

    I’ve changed my tactic: I’ve installed Post Grid and switched to a “custom” display type. However, it still reloads my entire page, and I have to keep scrolling down to see me results. Also, the infinity scroll isn’t working. I’m following this: https://searchandfilter.com/documentation/3rd-party/post-grid/

    Another thing: I’m working with the Salient theme. Could this be causing an issue?

    Trevor Moderator
    #251666
    This reply has been marked as private.
    iglooo
    #251918
    This reply has been marked as private.
    Trevor Moderator
    #252014

    You may have to add this code to your child theme functions.php file if using Post Grid:

    add_action('search_filter_filter_next_query', 'set_post_grid_paged');
    
    function set_post_grid_paged(){
    
            $sfpaged = 1;
            if(isset($_GET['sf_paged'])){
                    $sfpaged = intval($_GET['sf_paged']);
                    global $paged;
                    $paged = $sfpaged;
                    set_query_var("paged", $paged);
            }
    }

    That might fix it.

    iglooo
    #252516
    This reply has been marked as private.
    Trevor Moderator
    #252634

    To work with Infinite Scroll and our shortcode method, you need to follow these customising instructions:

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results

    BUT … instead of copying the results.php file over, copy the results-infinite-scroll.php file, and then rename it to results.php

    iglooo
    #252716
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 15 total)

The topic ‘Whole page reloads using shortcodes’ is closed to new replies.