Support » Plugin: WooCommerce » Translate permalinks pagination

  • tyller

    (@tyller)


    Hi

    I changed wordpress permalink for pagination from default “page” to “side” (Danish word for page) with below rewrite rule in functions.php. It works for all wordpress pages, but for woocommerce the shop paged pages are empty (e.g. http://www.mydomain.com/webshop/side/2/). Does anyone know a solution for this?
    Thank you in advance.

    function re_rewrite_rules() {
    global $wp_rewrite;
    $wp_rewrite->pagination_base = ‘side’; //what you want instead of “page”
    $wp_rewrite->flush_rules();
    }
    add_action(‘wp_loaded’, ‘re_rewrite_rules’);

  • The topic ‘Translate permalinks pagination’ is closed to new replies.