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

Plugin: wp-pagenavi (Used by 86,771 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
w*s*n*a.org βœ… F 2026-04-27 06:14:15
c*r*.eu βœ… F 2026-04-27 06:12:42
u*r*u*h.net βœ… F 2026-04-27 06:08:36
o*s*r*a*o*i*.duoc.cl (WP 6.9.4) βœ… A 2026-04-27 06:06:34
f*r*t*a*e*b*o*.com (WP 5.5.3) ⚠️ F 2026-04-27 06:06:30
f*p*e*i*e*e*t*o*d*a*.com βœ… F 2026-04-27 06:06:28
s*i*o*o*a*g*.jp βœ… F 2026-04-27 06:05:56
f*e*y*.org.ar βœ… F 2026-04-27 06:05:22
d*z*i*a*o*a.com βœ… F 2026-04-27 06:04:31
p*c*o*u*b*i*.com βœ… F 2026-04-27 06:04:01
m*d*-*e*.com (WP 6.0.9) ⚠️ F 2026-04-27 06:03:02
c*l*n*i*g*n*.org βœ… F 2026-04-27 06:01:35
i*k*i*k*.com βœ… D 2026-04-27 06:01:11
r*t*.com (WP 6.9.4) βœ… F 2026-04-27 06:00:22
t*e*n*o*a*i*n*a*e.com (WP 6.9.4) βœ… C 2026-04-27 06:00:06
c*i*m*a*s.com (WP 6.1.10) ⚠️ F 2026-04-27 05:58:48
f*n*r*a*i*e.com βœ… F 2026-04-27 05:57:47
d*n*w*.co.uk (WP 6.8.3) βœ… F 2026-04-27 05:57:24
m*q*e*i*.us βœ… F 2026-04-27 05:56:58
i*k*e*t.com (WP 6.3.8) ⚠️ F 2026-04-27 05:55:54
r*t*o*g*e*l*r*.com βœ… C 2026-04-27 05:55:38
g*a*h*a*c*i*e*t.com (WP 5.8.13) ⚠️ F 2026-04-27 05:55:36
c*i*l*y*u*l*.com βœ… F 2026-04-27 05:55:24
e*e*-*e*t*e*.de (WP 6.7.5) βœ… F 2026-04-27 05:55:11
t*a*h*a*p*c*.com (WP 5.8.13) ⚠️ F 2026-04-27 05:54:59
n*g*k*t*h*n.com βœ… F 2026-04-27 05:54:05
n*g*b*t*.com βœ… F 2026-04-27 05:54:04
b*t*e*t*g*t*e*a*s*e*v*e*.nl βœ… F 2026-04-27 05:53:44
r*t*m*a*.com πŸ”“ F 2026-04-27 05:50:23
f*l*w.com βœ… F 2026-04-27 05:49:12
v*b*f*l*s*g.com (WP 6.9.4) βœ… F 2026-04-27 05:48:59
s*e*v*n*t*e.no βœ… F 2026-04-27 05:48:49
x*-*-*7*b*g*h*h*a*q*g.xn--p1ai (WP 6.9.4) βœ… F 2026-04-27 05:48:48
t*a*h*g*y*n*i*h*o*g.com βœ… F 2026-04-27 05:48:10
s*s*e*p*r*.fr βœ… F 2026-04-27 05:47:34
p*a*o*i*n*-*t*d*o.com (WP 6.8.5) βœ… F 2026-04-27 05:46:56
p*i*e*m*d.ru βœ… F 2026-04-27 05:45:17
n*z*o*o*e.pl βœ… D 2026-04-27 05:44:43
b*o*.fastcap.com (WP 5.5.18) ⚠️ πŸ“‘ F 2026-04-27 05:44:38
w*f.ch βœ… F 2026-04-27 05:44:36
p*-*c*d*m*.com βœ… F 2026-04-27 05:43:13
b*o*.mlscotedazur.fr (WP 4.9.29) ⚠️ F 2026-04-27 05:42:56
c*i*d*e*s*e*l*h*e*e*s*.org.au βœ… D 2026-04-27 05:42:55
c*i*d*e*s*e*l*h*e*e*s*.co.za (WP 6.9.4) βœ… D 2026-04-27 05:42:55
t*e*n*r*d*o*e*s.com (WP 4.9.26) ⚠️ F 2026-04-27 05:42:02
m*n*o*p*e*i*.com βœ… F 2026-04-27 05:40:53
t*k*m*t*.tokyo (WP 6.1.10) ⚠️ F 2026-04-27 05:40:46
o*o*n*c*i*z*a*t*j*m*i*.pl (WP 6.8.5) βœ… F 2026-04-27 05:40:46
b*r*.in βœ… F 2026-04-27 05:40:35
t*a*h*g*a*t*.com (WP 6.8.5) βœ… F 2026-04-27 05:40:15
t*a*h*a*a*.com βœ… F 2026-04-27 05:40:15
t*a*h*y*o*e*.com (WP 5.7) ⚠️ F 2026-04-27 05:40:14
g*a*e*s*h*l*.com βœ… F 2026-04-27 05:39:44
t*t*s*t*u*.com.pl (WP 6.0.11) ⚠️ F 2026-04-27 05:39:34
a*-*a*k*n*.com (WP 6.1.10) ⚠️ F 2026-04-27 05:39:33
c*i*b*o*d*n.com βœ… F 2026-04-27 05:38:33
c*i*n*n*t.ws πŸ”“ F 2026-04-27 05:36:25
l*p*i*-*.jp βœ… F 2026-04-27 05:36:23
f*h*k*y*l*r*.com (WP 6.9.4) βœ… F 2026-04-27 05:36:18
r*s*n*l*v*n*y*r*s.com βœ… C 2026-04-27 05:35:55
r*s*n*l*v*n*y*r*.com βœ… C 2026-04-27 05:35:55
n*g*p*s*.com (WP 4.9.26) ⚠️ F 2026-04-27 05:34:03
a*a*i*a.co βœ… B 2026-04-27 05:33:02
t*u*u*a*k*.hs.nihon-u.ac.jp (WP 6.2) ⚠️ F 2026-04-27 05:32:53
t*m*-*o*e*t.com (WP 5.2.21) ⚠️ F 2026-04-27 05:32:53
p*y*i*f*r*.com (WP 6.9.4) βœ… F 2026-04-27 05:32:47
w*l*t*e*d*.de (WP 6.9.4) βœ… F 2026-04-27 05:32:33
r*s*s*t*r*.com βœ… F 2026-04-27 05:32:14
s*t*.extension.uga.edu (WP 6.9.4) βœ… F 2026-04-27 05:31:36
d*y*i*i.com (WP 6.9.4) βœ… F 2026-04-27 05:31:03
i*k*r*n*o.com βœ… F 2026-04-27 05:30:41
o*c*t*n*e*e*p*o*.fr βœ… D 2026-04-27 05:29:37
r*s*f*r*e.com βœ… F 2026-04-27 05:27:59
r*s*.com βœ… F 2026-04-27 05:27:59
k*a*g*a*.com βœ… F 2026-04-27 05:27:09
c*v*l*n*r*e*t*u*t.org βœ… F 2026-04-27 05:26:34
c*l*u*a*a*c*s*c*l*a*o*a*i*e.org βœ… F 2026-04-27 05:25:39
p*p.gov.mr (WP 4.8.25) ⚠️ F 2026-04-27 05:25:33
e*.campogalego.com (WP 4.6.30) ⚠️ F 2026-04-27 05:25:31
v*a*u*.com (WP 5.9.9) ⚠️ A 2026-04-27 05:23:04
f*f.com βœ… F 2026-04-27 05:22:50
m*r*k*l*.fi (WP 6.6.5) βœ… D 2026-04-27 05:22:48
o*e*a*t*o.fi βœ… B 2026-04-27 05:22:48
f*e*q.com βœ… D 2026-04-27 05:22:47
s*d.faterpg.de (WP 6.9.4) βœ… F 2026-04-27 05:19:23
p*w*r*c*e*n.ru βœ… F 2026-04-27 05:18:58
n*f*s*c.com βœ… B 2026-04-27 05:17:51
g*a*u*a*n*f*a*l*s.com βœ… F 2026-04-27 05:17:27
v*a*y*.com βœ… F 2026-04-27 05:14:22
p*u*i*n*i*r*o*.com βœ… F 2026-04-27 05:13:15
i*k*u*.com (WP 6.9.4) βœ… F 2026-04-27 05:12:27
f*c*a*e*i*t*o.com (WP 6.9.4) βœ… F 2026-04-27 05:09:41
p*s*i*a.com βœ… F 2026-04-27 05:09:38
b*a*t*b*l*z.nl βœ… F 2026-04-27 05:07:03
g*a*t*p*a*f*r*.com βœ… B 2026-04-27 05:06:54
g*a*t*p*s*v*g*t*r*a*.com (WP 6.9.4) βœ… F 2026-04-27 05:06:54
p*a*i*a*i*.hu βœ… F 2026-04-27 05:06:20
v*e.hu βœ… F 2026-04-27 05:06:20
v*l*t*k*e*u*i*y.hu βœ… F 2026-04-27 05:06:20
p*p*a*.com (WP 6.9.4) βœ… F 2026-04-27 05:03:51

Top 50 Plugins

Plugin Count
elementor 2,526,802
contact-form-7 2,277,621
elementor-pro 1,421,953
woocommerce 1,182,024
revslider 850,913
js_composer 557,290
jetpack 489,601
wp-rocket 407,248
essential-addons-for-elementor-lite 382,959
header-footer-elementor 326,489
gutenberg-core 310,592
elementskit-lite 306,387
gravityforms 294,309
instagram-feed 290,354
google-analytics-for-wordpress 287,819
google-site-kit 280,053
complianz-gdpr 280,022
cookie-law-info 274,921
sitepress-multilingual-cms 244,232
bluehost-wordpress-plugin 229,571
wpforms-lite 227,795
astra-sites 220,378
litespeed-cache 200,291
gtranslate 169,605
gutenberg 161,573
cookie-notice 160,949
coblocks 160,814
the-events-calendar 142,644
popup-maker 134,490
astra-addon 124,293
premium-addons-for-elementor 123,758
bb-plugin 123,460
LayerSlider 120,163
mailchimp-for-wp 120,139
wp-smushit 118,705
tablepress 115,517
creame-whatsapp-me 108,808
duracelltomi-google-tag-manager 106,664
custom-fonts 106,354
pro-elements 105,328
woocommerce-gateway-stripe 104,494
click-to-chat-for-whatsapp 103,091
cleantalk-spam-protect 103,061
akismet 101,353
honeypot 99,423
smart-slider-3 99,378
megamenu 98,594
fusion-builder 97,364
pixelyoursite 97,084
formidable 93,772

Top 50 Themes

Theme Count
hello-elementor 814,793
Divi 669,263
astra 663,737
pub 207,693
generatepress 153,055
flatsome 151,598
Avada 147,565
h4 125,378
oceanwp 111,769
kadence 99,521
enfold 85,828
salient 82,879
bb-theme 78,570
twentytwentyfour 76,265
blocksy 73,519
twentytwentyfive 71,810
cocoon-master 70,554
betheme 67,709
twentyseventeen 66,572
dt-the7 55,761
woodmart 55,117
neve 48,902
twentytwentyone 42,385
bridge 41,596
Avada-Child-Theme 38,875
swell 37,577
twentytwenty 36,716
gox 36,493
lightning 36,153
twentytwentythree 34,860
Impreza 29,885
bricks 29,885
Newspaper 27,572
twentytwentytwo 27,079
epik-redesign 23,397
extendable 22,403
pro 22,390
storefront 22,309
uncode 21,925
twentysixteen 21,545
yith-wonder 20,953
sydney 20,328
themify-ultra 19,480
Total 18,179
twentyfifteen 17,486
porto 16,658
hestia 16,053
thrive-theme 15,189
yootheme 15,117
twentynineteen 14,917