jachu
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Subdomains] Category PaginationAnd you must add something like this:
add_filter('next_post_link', 'paginate_fix_link_subdomain'); add_filter('previous_post_link', 'paginate_fix_link_subdomain'); add_filter('get_pagenum_link', 'paginate_fix_link_subdomain'); function paginate_fix_link_subdomain($url) { return str_replace(site_url(), '', $url); }Forum: Plugins
In reply to: [Subdomains] WordPress 3.9.1Yes it works, but you need change couple lines – https://ww.wp.xz.cn/support/topic/category-pagination-9
Forum: Plugins
In reply to: [Subdomains] Category PaginationHi,
I have similar problem. Open subdomains.php file and find function category_rewrite_rules
Replace with
function category_rewrite_rules($rules = array()) { $newrules = array(); $newrules["feed/(feed|rdf|rss|rss2|atom)/?$"] = "index.php?" . $this->query_var . "=" . $this->categor_slug . "&feed=\$matches[1]"; $newrules["(feed|rdf|rss|rss2|atom)/?$"] = "index.php?" . $this->query_var . "=" . $this->categor_slug . "&feed=\$matches[1]"; $newrules["page/?([0-9]{1,})/?$"] = "index.php?" . $this->query_var . "=" . $this->categor_slug . "&paged=\$matches[1]"; $newrules["$"] = "index.php?" . $this->query_var . "=" . $this->categor_slug; return $newrules + $rules; }Problem was with ordering rules 🙂 Custom rules should be first.
Viewing 3 replies - 1 through 3 (of 3 total)