Change of pagination base = conflict with WC
-
Hi
Since most of my WP-sites are in Swedish, I tend to change the pagination base from “page” to “sida”, with this code in my child themes functions.php:
add_action( ‘init’, ‘my_custom_page_word’ );
function my_custom_page_word() {
global $wp_rewrite;
$wp_rewrite->pagination_base = “sida”;
}But with the current page I’m developing this doesn’t work, it does change the slug name, but the page 2 (/sida/2/) is now a 404. I’m told by the theme developer this is due to Woocommerce:
“WooCommerce needs the page names to be as they are represented in the wordpress back end to work. I’m not aware of a way to fix this unfortunately.”
So I just wanted to check here on the support forum if anybody knows a way around this.
This is my shop page in developement: http://wp.consultobild.se/presentshop/
Thanks!
/ NW
- The topic ‘Change of pagination base = conflict with WC’ is closed to new replies.