S
S
spacekk2018-07-18 13:58:15
WordPress
spacekk, 2018-07-18 13:58:15

How to make wordpress pagination dots?

Can you tell me how to replace page numbers with dots in pagination?
For the posts page I use the function:

function wp_corenavi() {
  global $wp_query;
  $pages = '';
  $max = $wp_query->max_num_pages;
  if (!$current = get_query_var('paged')) $current = 1;
  $a['base'] = str_replace(999999999, '%#%', get_pagenum_link(999999999));
  $a['total'] = $max;
  $a['current'] = $current;

  $total = 0; //1 - выводить текст "Страница N из N", 0 - не выводить
  $a['mid_size'] = 3; //сколько ссылок показывать слева и справа от текущей
  $a['end_size'] = 1; //сколько ссылок показывать в начале и в конце
  $a['prev_text'] = '«'; //текст ссылки "Предыдущая страница"
  $a['next_text'] = '»'; //текст ссылки "Следующая страница"

  if ($max > 1) echo '<div class="navigation">';
  if ($total == 1 && $max > 1) $pages = '<span class="pages">Страница ' . $current . ' из ' . $max . '</span>'."\r\n";
  echo $pages . paginate_links($a);
  if ($max > 1) echo '</div>';
}

It turns
5b4f1cfb0fa74671491827.png
out I want
5b4f1d0bacc95538930009.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2018-07-18
@iamd503

use css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question