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

Plugin: wp-pagenavi (Used by 104,962 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
s*t*-*o*t*v.ru βœ… F 2026-04-18 05:18:16
s*a*y*i*s.com (WP 6.9.4) βœ… F 2026-04-18 05:18:16
t*m*l*b*t*o*b*i*k.org (WP 6.9.4) βœ… D 2026-04-18 05:18:13
h*r*e*r*m*d*e*g*i*e.com (WP 6.9.4) βœ… F 2026-04-18 05:15:31
b*o*s*w*r*d*m*.com (WP 6.8.1) βœ… F 2026-04-18 05:14:28
f*r*n*c*r*w*r*s.com βœ… F 2026-04-18 05:12:17
f*r*n*c*.com βœ… F 2026-04-18 05:12:17
f*r*n*i*l*b*.com βœ… F 2026-04-18 05:12:17
h*r*a*i*t*n.com (WP 6.9.4) βœ… F 2026-04-18 05:08:53
d*l*x*w*b*i*k*.com βœ… F 2026-04-18 05:04:15
a*b*k*n*y*.com (WP 4.9.26) ⚠️ F 2026-04-18 05:03:52
a*b*g*k*e*-*y*t*.com βœ… D 2026-04-18 05:03:52
a*b*1*5*.com βœ… F 2026-04-18 05:03:50
r*s*l*t*5*.com (WP 6.9.4) βœ… F 2026-04-18 05:02:25
m*b*t*o*.com βœ… F 2026-04-18 04:59:13
a*b*-*o*o*a*k*i.com (WP 5.7.15) ⚠️ F 2026-04-18 04:58:38
a*b*-*a*i*s.com (WP 6.9.4) βœ… F 2026-04-18 04:58:36
a*b*-*.com βœ… F 2026-04-18 04:58:35
f*r*s*o*t*o*t*o*o*t*c*.com βœ… F 2026-04-18 04:57:12
f*r*s*o*t*f*m*l*o*t*o*o*t*c*.com βœ… F 2026-04-18 04:57:12
x*i*a*v*n.co (WP 5.4.6) ⚠️ A 2026-04-18 04:56:40
s*o*x*2*h*.run (WP 6.9.4) βœ… F 2026-04-18 04:56:39
h*r*s*u.com (WP 6.9.4) βœ… F 2026-04-18 04:55:29
h*r*s*r*m*l*.com (WP 6.9.4) βœ… F 2026-04-18 04:55:29
r*s*a*-*n*.com (WP 5.7.15) ⚠️ F 2026-04-18 04:53:53
a*b*-*l*a*i*g.com (WP 6.9.4) βœ… F 2026-04-18 04:53:25
d*l*x*m*i*i*g.com βœ… F 2026-04-18 04:51:48
f*.ubiobio.cl βœ… F 2026-04-18 04:51:18
i*u*n*o*c*i*n.com (WP 6.8.2) βœ… F 2026-04-18 04:50:36
m*l*o*r*e*n*e*t*i*m*n*c*.com.au (WP 6.8.5) βœ… F 2026-04-18 04:48:45
b*o*n*t*e*s*r*i*e*l.com πŸ“„ F 2026-04-18 04:48:08
b*o*n*t*n*a*s*c.com (WP 6.9.4) βœ… F 2026-04-18 04:48:05
h*r*n*e*e.com βœ… F 2026-04-18 04:47:53
b*c*o*i*.org (WP 6.9.4) βœ… F 2026-04-18 04:46:00
s*a*k*c*r.com βœ… F 2026-04-18 04:44:43
a*-*t*.com (WP 6.9.4) βœ… F 2026-04-18 04:44:42
a*-*o*a*k*.com βœ… F 2026-04-18 04:44:41
b*o*n*h*e*.com βœ… F 2026-04-18 04:41:31
i*t*n*i*a*a*m.com (WP 6.9.4) βœ… F 2026-04-18 04:41:31
s*a*i*r*y.com (WP 6.9.4) βœ… D 2026-04-18 04:40:05
d*l*x*-*m*i.com βœ… F 2026-04-18 04:39:57
f*r*t*t*b*e*l*n*b*s*d.com (WP 6.9.4) βœ… F 2026-04-18 04:39:48
a*-*e*u*y*l*b*.com βœ… F 2026-04-18 04:39:47
m*b*l*p*i*a*e*i.com (WP 6.9.4) βœ… F 2026-04-18 04:38:34
t*i*e*v*l*.com βœ… F 2026-04-18 04:35:18
t*i*e*t*d*s*g*.com βœ… F 2026-04-18 04:35:17
a*z*n*i*.com (WP 6.7.2) βœ… F 2026-04-18 04:34:40
m*b*l*n*x*.com πŸ”“ F 2026-04-18 04:34:15
h*r*i*i*v*s*i*g.com (WP 6.9.4) βœ… F 2026-04-18 04:33:20
b*o*n*e*i*a*w*f*.com βœ… F 2026-04-18 04:31:44
b*o*n*e*i*a*g*o*p.com βœ… F 2026-04-18 04:31:44
o*-*a*a*.org (WP 6.7.2) βœ… A 2026-04-18 04:30:30
i*m*b*l*a*i*m*d*s.es βœ… F 2026-04-18 04:30:30
m*b*n*n*w*b.com βœ… F 2026-04-18 04:29:44
a*z*u*i*m*a*i*m*n*i*.com βœ… F 2026-04-18 04:28:45
s*a*e*r*y*.com (WP 6.9.4) βœ… F 2026-04-18 04:28:29
b*o*n*n.com βœ… F 2026-04-18 04:28:24
t*i*u*l*t*p*i*t*n*.com βœ… F 2026-04-18 04:25:04
m*b*e*a*.com (WP 6.8.5) βœ… F 2026-04-18 04:24:47
e*p*n*r.cl βœ… F 2026-04-18 04:23:18
h*r*h*r*a*a*.com βœ… F 2026-04-18 04:22:42
s*i*l*u*o*a*e*k*s*e*l*s.net βœ… F 2026-04-18 04:19:52
a*z*n*e*g.com βœ… D 2026-04-18 04:18:26
u*d*t*m*a*d*o*d.com (WP 6.9.4) βœ… F 2026-04-18 04:17:50
k*o*r*s.com βœ… F 2026-04-18 04:17:09
k*n*o*n*.com βœ… F 2026-04-18 04:17:08
o*a*a*.es (WP 6.1.10) ⚠️ F 2026-04-18 04:15:38
u*a*j*h*t.com βœ… F 2026-04-18 04:13:07
r*s*n*t*.com βœ… F 2026-04-18 04:12:56
k*n*o*u*.com (WP 6.7.5) βœ… F 2026-04-18 04:11:20
a*z*c*o*e*s.com βœ… F 2026-04-18 04:10:08
a*z*k*b*.com (WP 5.2.18) ⚠️ F 2026-04-18 04:10:07
m*a*l*s*i*t*e*o*n*a*n*.com (WP 6.9.4) βœ… F 2026-04-18 04:08:50
r*s*n*r*b*m*l*n*.com βœ… F 2026-04-18 04:08:23
s*a*l*s*e*s*a*e.com (WP 6.7.1) βœ… D 2026-04-18 04:06:50
a*y*x*h*r*.com βœ… D 2026-04-18 04:05:48
c*s*g*a*d.co.in βœ… B 2026-04-18 04:04:52
o*-*a*k*n*.com βœ… F 2026-04-18 04:04:49
o*-*h*-*a*e*p*g*.com βœ… D 2026-04-18 04:04:47
f*r*i*g*o*d*r*.com βœ… F 2026-04-18 04:03:46
s*a*l*m*d*.com βœ… F 2026-04-18 04:03:27
r*s*l*e*t*o*a*.com βœ… F 2026-04-18 04:03:22
d*l*a*u*p*i*r.com (WP 6.9.4) βœ… F 2026-04-18 04:02:07
a*l*t*t*a*p*a*s*l.net βœ… D 2026-04-18 03:59:50
i*e*d*y*r*d.org (WP 6.9.4) βœ… F 2026-04-18 03:59:48
i*e*d*e*o*p*c*.org (WP 6.9.4) βœ… F 2026-04-18 03:59:48
i*e*d*n*i*e.org (WP 6.9.4) βœ… F 2026-04-18 03:59:48
e*p*w*r*e*e*a*i*n*.org (WP 6.9.4) βœ… F 2026-04-18 03:59:48
i*e*d*v.org (WP 6.9.4) βœ… F 2026-04-18 03:59:48
i*e*d*g*a*u*c*.org (WP 6.9.4) βœ… F 2026-04-18 03:59:48
u*t*r*e*m*n*-*a*e*.com (WP 6.8.5) βœ… F 2026-04-18 03:57:19
d*l*a*s*c*e*y.com (WP 6.9.4) βœ… C 2026-04-18 03:57:16
d*l*a*o*.com βœ… F 2026-04-18 03:57:15
r*s*l*e*t*i*d*o*c*.com (WP 6.9.4) βœ… F 2026-04-18 03:56:48
h*r*-*a*d*n.com βœ… F 2026-04-18 03:55:20
h*r*-*d*c*t*o*.com (WP 6.7.5) βœ… F 2026-04-18 03:55:18
h*l*-*a*i*.jp (WP 6.9.4) βœ… F 2026-04-18 03:55:09
m*a*-*u*k*y*.com βœ… F 2026-04-18 03:54:29
a*y*o*o*r*w.com βœ… F 2026-04-18 03:54:06
u*r*n*o*e*p*s*e*.com βœ… F 2026-04-18 03:53:17

Top 50 Plugins

Plugin Count
elementor 3,346,694
contact-form-7 2,897,965
elementor-pro 1,853,788
woocommerce 1,587,290
revslider 1,105,702
js_composer 702,257
jetpack 517,588
wp-rocket 501,904
essential-addons-for-elementor-lite 499,296
header-footer-elementor 447,736
elementskit-lite 424,476
gutenberg-core 380,985
google-analytics-for-wordpress 369,842
instagram-feed 366,848
google-site-kit 354,591
cookie-law-info 339,420
complianz-gdpr 335,485
gravityforms 331,898
wpforms-lite 326,075
astra-sites 319,995
sitepress-multilingual-cms 286,622
litespeed-cache 283,530
bluehost-wordpress-plugin 267,424
gtranslate 218,961
coblocks 197,829
cookie-notice 197,693
the-events-calendar 166,559
premium-addons-for-elementor 165,238
gutenberg 164,420
mailchimp-for-wp 160,686
astra-addon 159,214
bb-plugin 158,593
popup-maker 155,789
LayerSlider 150,799
pro-elements 148,836
wp-smushit 148,694
creame-whatsapp-me 147,567
click-to-chat-for-whatsapp 146,663
sg-cachepress 138,354
tablepress 137,481
custom-fonts 137,270
woocommerce-gateway-stripe 130,252
royal-elementor-addons 129,955
duracelltomi-google-tag-manager 127,494
smart-slider-3 127,102
pixelyoursite 125,192
ultimate-addons-for-gutenberg 123,726
cleantalk-spam-protect 123,622
fusion-builder 118,887
megamenu 118,708

Top 50 Themes

Theme Count
hello-elementor 1,045,895
astra 915,652
Divi 847,091
pub 250,982
generatepress 196,254
flatsome 194,619
Avada 175,335
h4 168,672
oceanwp 144,036
kadence 125,835
enfold 104,257
bb-theme 103,614
twentytwentyfive 101,632
salient 101,219
blocksy 100,136
twentytwentyfour 99,471
cocoon-master 94,680
betheme 85,737
woodmart 80,455
twentyseventeen 78,904
dt-the7 68,742
neve 60,598
twentytwentyone 52,263
bridge 51,313
swell 50,610
lightning 45,097
twentytwentythree 44,634
twentytwenty 44,027
Avada-Child-Theme 41,827
gox 39,495
Impreza 35,843
bricks 35,518
Newspaper 34,068
twentytwentytwo 33,567
storefront 27,571
yith-wonder 27,434
extendable 27,275
pro 26,832
epik-redesign 26,685
uncode 26,262
themify-ultra 26,061
twentysixteen 25,484
sydney 25,004
twentyfifteen 24,561
Total 22,368
porto 21,720
hestia 20,041
go 19,688
thrive-theme 18,926
popularfx 18,730