Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
WP-PageNavi icon

WP-PageNavi

v2.94.5
by Lester Chan · 4.7 (149 reviews)

Adds a more advanced paging navigation interface.

500K+ active installs Updated Dec 19, 2024 Tested to 6.7.2
Try Demo Download
Pre-installed Ready in ~10s No card
WP-PageNavi

About WP-PageNavi

This plugin allows you to replace the standard "Older posts | Newer posts" links with customizable page links. You can easily configure the CSS style of the pagination links and change the class names using filters. You can find more information and download the plugin from the GitHub repository.

Screenshots

WP-PageNavi screenshot
WP-PageNavi screenshot

Frequently asked questions

What does WP-PageNavi do?
WP-PageNavi replaces the standard 'Older posts | Newer posts' links with more advanced pagination links. It provides the wp_pagenavi() template tag for this purpose.
How do I install WP-PageNavi?
To use WP-PageNavi, you need to replace calls to next_posts_link() and previous_posts_link() in your theme with the wp_pagenavi() template tag. For multipart pages, you would replace wp_link_pages() with wp_pagenavi( array( 'type' => 'multipart' ) ).
How can I customize the CSS for WP-PageNavi?
You can customize the CSS by copying the pagenavi-css.css file from the plugin directory to your theme's directory and modifying it there. Alternatively, you can disable the plugin's CSS from the settings and add styles directly to your theme's style.css file.
Can I change the class names used by WP-PageNavi?
Yes, WP-PageNavi provides filters that allow you to change the default class names assigned to page navigation elements. Examples of these filters include wp_pagenavi_class_pages and wp_pagenavi_class_current.

Changelog

2.94.5

  • FIXED: WP SCB Framework now uses init hook again

2.94.4

  • FIXED: Revert WP SCB Framework to use plugins_loaded hook

2.94.3

  • FIXED: Update WP SCB Framework to fix load_textdomain_just_in_time warning
  • FIXED: Remove load_plugin_textdomain since it is no longer needed since WP 4.6

2.94.2

  • FIXED: load_plugin_textdomain to be called during init

2.94.1

  • FIXED: PHP 8.2 warnings

2.94.0

  • NEW: Add args param on wp_pagenavi filter. Props @asadowski10
  • NEW: Improve accessibility of nav links. Props @carlabobak

2.93.4

  • FIXED: Update SCB Framework To Support PHP 8

2.93.3

  • FIXED: Update SCB Framework To Remove contextual_help

2.93.2

  • NEW: Bumped to WordPress 5.4
  • FIXED: Ensure Action Links is always an array

2.93.1

  • FIXED: Duplicated Settings Saved admin_notices

2.93

  • Remove screen_icon from SCB.

2.92

  • Add title attr to pages link. Props @Mahjouba91.

2.91

  • Validate text option against kses
  • Update SCB Framework

2.90

  • Remove po/mo files from the plugin
  • Use translate.wordpress.org to translate the plugin

2.89.1

  • FIXED: before and after args

2.89

  • NEW: wrapper_tag option to allow other HTML tag besides DIV and wrapper_class option to allow other class name besides wp-pagenavi. Props @Mahjouba91.

2.88

  • NEW: Added filters for altering class names. Props @bookwyrm

2.87

  • NEW: Uses WordPress native uninstall.php

2.86

  • NEW: Bump to 4.0
  • NEW: Added rel=next and rel=previous

2.85

  • FIXED: “Use pagenavi-css.css” & “Always Show Page Navigation” in the options are not being saved

2.84

  • FIXED: Updated scb framework to fix scbAdminPage incompatible error

2.83

  • added ‘echo’ parameter
  • added Estonian and Bengali translations
  • updated scbFramework

2.82

  • fixed prev/next links not appearing in some conditions
  • added Hebrew, Georgian and Azerbaijani translations
  • updated scbFramework

2.81

  • require an explicit type; fixes bugs with multipart pages

2.80

  • support for multi-part pages and user queries
  • moved prev/next links before/after first/last links
  • more info

2.74 (2011-02-17)

  • added ‘smaller’ and ‘larger’ classes
  • added $query arg to wp_pagenavi()
  • updated translations
  • more info

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…