Change Previous and Next text in pagination links

Asked

Viewed 149 times

0

I set in functions.php the parameters of the pagination and gave an echo where I want the links to appear, so far so good.

The problem is that the texts of Previous and next are not modifying. I put a text nothing to see and see what appears. They are even translated...

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

<?php $args = array(
    'base'               => '%_%',
    'format'             => '?paged=%#%',
    'total'              => 1,
    'current'            => 0,
    'show_all'           => false,
    'end_size'           => 1,
    'mid_size'           => 2,
    'prev_next'          => true,
    'prev_text'          => __('wefdwqd'),
    'next_text'          => __('wqdwqdqw'),
    'type'               => 'list',
    'add_args'           => false,
    'add_fragment'       => '',
    'before_page_number' => '',
    'after_page_number'  => ''
); ?>



<!-- Links de paginação -->
<?php echo paginate_links( $args ); ?>
  • Images is what you want? You have Opache active?

  • No, the text in the image is what appears, what I want is to be able to modify the text for anything. The array should do this, but it’s not.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.