How to translate archive pagination url?

I need to translate the word “page” in the permalink structure into Italian or in general change the page with another word, how do I do it?
Do I need a translation plugin or is there some wordpress filter I can use?
my actual structure
/archivio-articoli/page/2/
i need this:
/archivio-articoli/pagina/2/

Hey Paolo,

you can create a small PHP code snippet (in your child theme’s functions.php or a code snippet plugin of your choice) and use the global $wp_rewrite variable to adjust the pagination base (see WP_Rewrite):

add_action( 'init', function() {
    global $wp_rewrite;
    $wp_rewrite->pagination_base = 'pagina';
} );

Make sure to resave your permalinks after this change.

Let me know if that helps.

Best,

André

1 Like

it’s works … thanks so much :=)