pagination translation

Latest Reply from Pero at 2013-06-17 15:30:05
Hi, i would like to rename 'Previous' and 'Next' buttons at the bottom of my site.
This is my site : www.archery.co.nf
I am using your Olympicgames theme which i purchased but haven't yet activated.
Got a little lost at /wp-includes/link-template.php and /wp-content/themes/olympicgames/style.css
I would appreciate any help greatly, many thanks in advance.
Hi!

There is the following code in the file pagination.php:
echo paginate_links( array(
'base' => str_replace( $big, '%#%', get_pagenum_link( $big ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages
) );
To change the "next"/"previous" tags you have to replace it with:
echo paginate_links( array(
'base' => str_replace( $big, '%#%', get_pagenum_link( $big ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages,
'prev_text' => __('« Previous'),
'next_text' => __('Next »'),
) );
Then you have to rename "next" and "prev".
Thank you very much, it worked perfectly :)

Leave a reply

Add codeAdd image