пытаюсь
получить
<span class="page-numbers current">1</span>
<a class="page-numbers" href="">2</a>
<a class="page-numbers">3</a>
<span class="page-numbers dots">…</span>
<a class="page-numbers" href="">8</a>-->
<?php
if($query->max_num_pages == 1) {
echo '<span class="page-numbers current"></span>';
} else {
echo paginate_links( array(
'total' => $query->max_num_pages,
//'mid_size' => '2',
'prev_next' => '',
'next_text' => '',
) );
}
?>
но
получаю
<span class="page-numbers current">1</span>
<a class="page-numbers" href="">2</a>
<a class="page-numbers" href="">3</a>
<a class="page-numbers" href="">4</a>
<a class="page-numbers" href="">4</a>
<a class="page-numbers" href="">5</a>
<a class="page-numbers" href="">6</a>
<a class="page-numbers" href="">7</a>
<a class="page-numbers" href="">8</a>