Using paginate_links() to generate “1, 2, 3 … 10, 20, 30, 40… 55” paginations
The paginate_links() function does this by default. The controlling parameter is mid_size, which determines the number of page links around the current page to display. The default value is 2. What this means is that, assuming you have 12 pages, and the current page is Page 1, the pagination will look like: 1 2 3 … Read more