Sometimes you'll see things like this:
[ << ] [<] ... 665 666 667 668 669 670 671 672 673 ... [ > ] [ >> ]
or this:
[ << ] [<] 1 2 3 ... 667 668 669 670 671 ... 845 846 847 [ > ] [ >> ]
What would be nice to have a pagination display that lets the user reach any page in only a few mouseclicks, without having ridiculously many links.
This can be achieved by having page numbers distributed logarithmically, according to distance from either the endpoints or the current page. Here's an example of what I mean:
1 2 3 4 5 6 . 10 . 20 . 30 . 40 . 50 .. 100 .. 200 . 210 . 220 . 230 . 240 . 250 . 252 253 254 255 256 257 258 259 260 261 262 . 270 . 280 . 290 . 300 . 310 .. 400 .. 500 .. 600 .. 700 .. 800 .. 900 .. 950 . 960 . 970 . 980 . 990 . 995 996 997 998 999 1000
Notice how in the gaps, numbering goes from 1s, to 10s, to 100s
(etc.).
Example Pagination on this site: Here's a link! Using Plugin : wp-pagenavi!
Please share me solution or class to pagination like this site .
Thanks and Best Regard!