Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i would like my WP URLs to be fully in my language so instead of:

site.com/page/2/

i would like to have:

site.com/pagina/2/ (in spanish)

how can i accomplish this? i tried to do simple str_replace on default rules but when accessing site.com/pagina/2/ WP redirects me to site.com/pagina/2/page/2/

any ideas what could be wrong ?

share|improve this question

1 Answer 1

A bit late but maybe usefull for someone else… code goes to functions.php. You have to flush your rewrite rules.

<?php

    // Set custom pagination_base
    function mytheme_pagination_base() {
        global $wp_rewrite;

        $wp_rewrite->pagination_base = 'pagina';
    }

    add_action( 'init', 'mytheme_pagination_base' );
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.