WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: wp-pagenavi (Used by 94,864 domains)

WP-PageNavi

πŸ‘€ Lester Chan πŸ“¦ v2.94.5 πŸ”— Plugin Homepage

Want to replace the old ← Older posts | Newer posts β†’ links with some page links?

This plugin provides the wp_pagenavi() template tag which generates fancy pagination links.

Usage

In your theme, you need to find calls to next_posts_link() and previous_posts_link() and replace them.

In the Twentyten theme, it looks like this:



You would replace those two lines with this:


For multipart pages, you would look for code like this:


and replace it with this:

 'multipart' ) ); ?>

Go to WP-Admin -> Settings -> PageNavi for configuration.

Changing the CSS

If you need to configure the CSS style of WP-PageNavi, you can copy the pagenavi-css.css file from the plugin directory to your theme’s directory and make your modifications there. This way, you won’t lose your changes when you update the plugin.

Alternatively, you can uncheck the β€œUse pagenavi.css?” option from the settings page and add the styles to your theme’s style.css file directly.

Changing Class Names

There are filters that can be used to change the default class names that are assigned to page navigation elements.

Filters

  • wp_pagenavi_class_pages
  • wp_pagenavi_class_first
  • wp_pagenavi_class_previouspostslink
  • wp_pagenavi_class_extend
  • wp_pagenavi_class_smaller
  • wp_pagenavi_class_page
  • wp_pagenavi_class_current
  • wp_pagenavi_class_larger
  • wp_pagenavi_class_nextpostslink
  • wp_pagenavi_class_last

Filter Usage

// Simple Usage - 1 callback per filter
add_filter('wp_pagenavi_class_previouspostslink', 'theme_pagination_previouspostslink_class');
add_filter('wp_pagenavi_class_nextpostslink', 'theme_pagination_nextpostslink_class');
add_filter('wp_pagenavi_class_page', 'theme_pagination_page_class');

function theme_pagination_previouspostslink_class($class_name) {
  return 'pagination__control-link pagination__control-link--previous';
}

function theme_pagination_nextpostslink_class($class_name) {
  return 'pagination__control-link pagination__control-link--next';
}

function theme_pagination_page_class($class_name) {
  return 'pagination__current-page';
}


// More Concise Usage - 1 callback for all filters
add_filter('wp_pagenavi_class_previouspostslink', 'theme_pagination_class');
add_filter('wp_pagenavi_class_nextpostslink', 'theme_pagination_class');
add_filter('wp_pagenavi_class_page', 'theme_pagination_class');

function theme_pagination_class($class_name) {
  switch($class_name) {
    case 'previouspostslink':
      $class_name = 'pagination__control-link pagination__control-link--previous';
      break;
    case 'nextpostslink':
      $class_name = 'pagination__control-link pagination__control-link--next';
      break;
    case 'page':
      $class_name = 'pagination__current'
      break;
  }
  return $class_name;
}

Development

Credits

Donations

I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.

DomainExposuresHeadersLast Checked
u*i*a*j*h*c*i*e*.com (WP 5.9.13) ⚠️ F 2026-04-22 17:33:28
e*j*y*l*c.net (WP 6.9.4) βœ… F 2026-04-22 17:30:58
r*u.net βœ… F 2026-04-22 17:30:57
m*m*m*r*-*a*o*u.org (WP 6.9.4) βœ… F 2026-04-22 17:30:57
n*s*o*e*.net βœ… F 2026-04-22 17:30:56
b*s*-*a*k*r*.org (WP 5.4.6) ⚠️ A 2026-04-22 17:30:32
h*b*y*h*w.jp (WP 6.9.4) βœ… F 2026-04-22 17:30:31
b*o*.akoperations.com βœ… D 2026-04-22 17:26:53
i*r*p*r*.de βœ… F 2026-04-22 17:26:47
o*a*r*c*n*d*.org βœ… F 2026-04-22 17:26:46
l*s*o*s*l*v*.com βœ… F 2026-04-22 17:25:13
m*s*a*e*m*i.com (WP 6.0.11) ⚠️ D 2026-04-22 17:23:22
e*u*a*o*s*n*h*f*i*h.com βœ… A 2026-04-22 17:23:17
e*i*i*.cab (WP 6.9.4) βœ… F 2026-04-22 17:23:16
p*r*t*a*r*.com βœ… F 2026-04-22 17:22:59
l*f*w*r*s.jp (WP 6.9.4) βœ… F 2026-04-22 17:22:49
e*o*y*.brussels (WP 6.9.4) βœ… F 2026-04-22 17:21:48
u*i*a*k*m*g*.com βœ… F 2026-04-22 17:21:46
s*a*y*y*a*.com βœ… F 2026-04-22 17:21:45
m*g*n*n.sakura.ne.jp (WP 6.9.4) βœ… F 2026-04-22 17:20:31
e*u*a*o*i*t*e*a*t*.com βœ… A 2026-04-22 17:19:08
b*i.mk (WP 6.9.4) βœ… F 2026-04-22 17:18:27
s*p.org.br βœ… F 2026-04-22 17:18:10
u*h*d.com βœ… F 2026-04-22 17:17:30
t*e*d*.jp βœ… F 2026-04-22 17:16:54
m*s*-*a*y.com (WP 6.2.2) ⚠️ F 2026-04-22 17:16:41
p*r*g*e*r*l*e.com βœ… F 2026-04-22 17:16:01
e*u*a*i*u*i*u*.com βœ… F 2026-04-22 17:15:32
d*p*u*c*a*i*y.org (WP 6.9.1) βœ… F 2026-04-22 17:15:21
a*s*c*.catholique.fr (WP 6.4.7) ⚠️ F 2026-04-22 17:14:57
a*t*u*m*r*a*t*k*o.com βœ… F 2026-04-22 17:14:20
p*o*e*v.de (WP 6.9.4) βœ… D 2026-04-22 17:14:04
u*g*a*i*y*n*u*o.com βœ… F 2026-04-22 17:13:35
l*s*a*a*s*a*c*r*.com βœ… F 2026-04-22 17:13:16
s*b*n*d*n*e*.de (WP 4.9.29) ⚠️ F 2026-04-22 17:12:40
h*n*d*u*a*.com βœ… F 2026-04-22 17:10:21
l*s*i*d*a*.com (WP 6.9.4) βœ… D 2026-04-22 17:09:10
c*a*p*o*y*.com βœ… F 2026-04-22 17:08:45
c*a*p*o*t*t*l*e*l*h.com βœ… F 2026-04-22 17:08:42
c*a*p*o*t*t*e.com βœ… C 2026-04-22 17:08:42
t*p*0*p*r*s*e*t*n*s*t*s.net (WP 6.9.4) βœ… F 2026-04-22 17:07:56
f*p*l*p*y*h*n*l*s*.org βœ… F 2026-04-22 17:07:37
a*w*k*.ai βœ… D 2026-04-22 17:07:37
s*a*e*t.org.uk βœ… F 2026-04-22 17:06:08
h*n*d*e*o*h*c*f*.com βœ… F 2026-04-22 17:05:37
l*s*a*g*r*.com βœ… F 2026-04-22 17:04:39
c*a*p*o*s*x.com βœ… F 2026-04-22 17:03:57
g*t*r*e*l*n*.co (WP 6.9.4) βœ… F 2026-04-22 17:03:35
s*e*a.it (WP 6.9.4) βœ… F 2026-04-22 16:59:29
m*s*y*1*9*.com (WP 6.9.4) βœ… F 2026-04-22 16:59:16
m*s*o*i*e*a*o*i*o.userena.cl βœ… C 2026-04-22 16:57:53
o*l*a*s.catholique.fr (WP 6.4.7) ⚠️ F 2026-04-22 16:57:52
l*c*i*d*v*n*.catholique.fr (WP 6.4.7) ⚠️ F 2026-04-22 16:57:52
u*e*-*n*u*t*y.com (WP 6.9.4) βœ… F 2026-04-22 16:57:37
k*l*v*o*e*.com (WP 6.9.4) βœ… F 2026-04-22 16:57:14
c*w.com.au (WP 6.9.4) βœ… F 2026-04-22 16:56:44
m*s*r*-*o*o.com βœ… F 2026-04-22 16:55:39
c*c*.cl (WP 6.5) ⚠️ F 2026-04-22 16:54:21
p*r*t*o*t*l.com βœ… F 2026-04-22 16:54:04
l*n*r*s*a*e*t*u*a*t.net (WP 5.3.18) ⚠️ F 2026-04-22 16:53:58
h*n*y*e*h*l*g.com (WP 6.9.4) βœ… F 2026-04-22 16:53:29
k*l*k*o*p*l*t.com βœ… D 2026-04-22 16:53:18
c*l*b*e*.com βœ… C 2026-04-22 16:52:05
m*s*n*-*a*a*u*a.com βœ… D 2026-04-22 16:51:47
l*s*l*g*s*d*-*h*c.com (WP 3.7.34) ⚠️ F 2026-04-22 16:51:38
c*a*p*o*s*a*f*l*.com βœ… F 2026-04-22 16:51:15
a*t*r*d*n*m*k.com βœ… F 2026-04-22 16:50:50
p*r*t*s*c.com (WP 6.9.4) βœ… F 2026-04-22 16:48:44
f*d*c*m*r*h*.org βœ… F 2026-04-22 16:48:40
g*a*d*o*g*y.fr βœ… A 2026-04-22 16:48:38
l*r*s*r*.com (WP 4.9.26) ⚠️ F 2026-04-22 16:47:17
t*b.or.jp (WP 6.9.4) βœ… F 2026-04-22 16:45:17
l*p*l*i*i*o*t*b*l*o.com βœ… F 2026-04-22 16:41:55
p*r*t*c*n*l*v*.com βœ… F 2026-04-22 16:41:32
m*s*e*c*r*.com βœ… F 2026-04-22 16:41:32
h*a*i*g*r*s*.org βœ… F 2026-04-22 16:41:27
h*n*y*o*n*a*k*r.com βœ… F 2026-04-22 16:41:09
c*a*p*o*m*t*l*l*s*.com βœ… F 2026-04-22 16:39:51
u*b*s*n*s*c*n*r*l*l*e.com βœ… F 2026-04-22 16:39:47
u*b*s*n*s*b*d*y.com βœ… B 2026-04-22 16:39:47
v*b*t*.cc (WP 5.9.9) ⚠️ A 2026-04-22 16:39:12
p*r*d*g*a*e*i*.org βœ… F 2026-04-22 16:39:11
m*s*o*y*t*m*.com (WP 6.6.5) βœ… F 2026-04-22 16:37:28
m*s*o*a*a*.com (WP 6.4.8) ⚠️ F 2026-04-22 16:37:27
a*t*o*l*k*r*.com (WP 6.9.4) βœ… F 2026-04-22 16:37:19
u*b*s*.com (WP 6.6.5) βœ… F 2026-04-22 16:36:14
t*a*h*t*t.org βœ… F 2026-04-22 16:35:54
c*a*p*o*h*m*s*a*a*a.com βœ… A 2026-04-22 16:35:52
a*t*i*t*r*u*s*u*f*d.com βœ… D 2026-04-22 16:34:38
n*t*0.net βœ… C 2026-04-22 16:34:19
k*l*o*u*i*r*e*.com (WP 6.9.4) βœ… F 2026-04-22 16:33:02
a*t*e*e.com (WP 5.8.13) ⚠️ F 2026-04-22 16:31:25
p*r*g*i*m*p*m*l*n*.com βœ… A 2026-04-22 16:27:45
h*n*y*o*d*c*l*r.com βœ… F 2026-04-22 16:27:09
u*a*1*8.com βœ… F 2026-04-22 16:26:09
k*l*e*-*r*z*o.com (WP 6.8.5) βœ… F 2026-04-22 16:25:48
a*t*a*a*o*a*.com (WP 6.9.4) βœ… F 2026-04-22 16:25:48
k*l*y*o*b*t.com βœ… F 2026-04-22 16:25:46
o*m*.org (WP 6.9.4) βœ… D 2026-04-22 16:25:13
r*c*c*e*m*t*r*a*s.org βœ… B 2026-04-22 16:25:13

Top 50 Plugins

Plugin Count
elementor 2,934,209
contact-form-7 2,581,095
elementor-pro 1,635,283
woocommerce 1,384,461
revslider 976,801
js_composer 628,375
jetpack 502,513
wp-rocket 453,040
essential-addons-for-elementor-lite 439,629
header-footer-elementor 387,392
gutenberg-core 367,400
elementskit-lite 364,523
instagram-feed 329,158
google-analytics-for-wordpress 329,038
google-site-kit 316,854
gravityforms 311,861
complianz-gdpr 306,520
cookie-law-info 306,087
wpforms-lite 278,062
astra-sites 271,513
sitepress-multilingual-cms 263,632
bluehost-wordpress-plugin 249,059
litespeed-cache 241,550
gtranslate 193,691
coblocks 184,688
cookie-notice 177,255
gutenberg 163,124
the-events-calendar 153,766
popup-maker 144,687
premium-addons-for-elementor 144,353
astra-addon 141,766
mailchimp-for-wp 140,670
bb-plugin 140,651
LayerSlider 135,166
wp-smushit 133,541
custom-fonts 129,158
creame-whatsapp-me 128,712
pro-elements 127,369
tablepress 125,369
click-to-chat-for-whatsapp 124,616
woocommerce-gateway-stripe 117,671
duracelltomi-google-tag-manager 116,432
cleantalk-spam-protect 113,333
smart-slider-3 112,781
royal-elementor-addons 111,054
pixelyoursite 110,723
akismet 109,513
megamenu 107,816
fusion-builder 107,585
sg-cachepress 107,066

Top 50 Themes

Theme Count
hello-elementor 929,284
astra 791,603
Divi 758,489
pub 243,592
generatepress 174,697
flatsome 172,363
Avada 160,764
h4 155,668
oceanwp 127,903
kadence 112,856
enfold 94,622
salient 91,726
bb-theme 90,888
twentytwentyfour 87,786
blocksy 87,024
twentytwentyfive 86,632
cocoon-master 81,515
betheme 76,348
twentyseventeen 72,634
woodmart 66,927
dt-the7 62,169
neve 54,671
twentytwentyone 47,211
bridge 46,432
swell 43,540
twentytwenty 40,332
lightning 40,094
Avada-Child-Theme 40,076
twentytwentythree 39,821
gox 38,016
bricks 32,555
Impreza 32,533
Newspaper 30,817
twentytwentytwo 30,373
epik-redesign 25,066
extendable 24,909
storefront 24,866
pro 24,594
yith-wonder 24,336
uncode 23,948
twentysixteen 23,397
themify-ultra 22,686
sydney 22,673
twentyfifteen 21,149
Total 20,315
porto 19,065
hestia 18,035
thrive-theme 17,275
yootheme 16,658
popularfx 16,596