WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.