Looking for support? You can access the support system via your account.
- This topic has 14 replies, 2 voices, and was last updated 3 years, 8 months ago by .
The topic ‘Whole page reloads using shortcodes’ is closed to new replies.
Looking for support? You can access the support system via your account.
Forums › Forums › Search & Filter Pro › Whole page reloads using shortcodes
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?
It might be the Permalinks, yes. Using Postname is much safer. Do you have the Results URL correctly set?
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.
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?
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.
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
The topic ‘Whole page reloads using shortcodes’ is closed to new replies.
© 2024 Search & Filter Support. All Rights Reserved.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy