- This topic has 1 reply, 2 voices, and was last updated 7 years, 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Page url slug
Tagged: V3
Please add fillter for localized page url slugs in future versions of sf pro plugin.
Something like this:
--- a/public/includes/class-search-filter-query.php
+++ b/public/includes/class-search-filter-query.php
@@ -1160,10 +1160,10 @@
{
$sf_page_no = (int)$url_args['paged'];
}
- else if($this->has_url_var($url, "page")) //check to see if this is different for different langs
+ else if($this->has_url_var($url, apply_filters('sf_page_url_slug', 'page'))) //check to see if this is different for different langs
{//try to get page number from permalink url
- $sf_page_no = (int)$this->get_url_var($url, "page");
+ $sf_page_no = (int)$this->get_url_var($url, apply_filters('sf_page_url_slug', 'page'));
}
else if(isset($url_args['sf_paged']))
{