Get an Unlimited Downloads package (starting at only $14.50)DOWNLOAD ALL NOW!

WP-PageNavi

WP-PageNavi

Included for free in the Unlimited Downloads package

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:

<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>

You would replace those two lines with this:

<?php wp_pagenavi(); ?>

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

<?php wp_link_pages( ... ); ?>

and replace it with this:

<?php wp_pagenavi( array( 'type' => '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.

Version

2.50
We always carry the latest version, but if we are missing it, please report outdated

Updated on

10/15/2025

Status

Activated (original)
Fully working by default. However, if any features don’t work, please fill out this form and let us know to replace the file.

Uploaded by

Claim & Earn!

Do you have a valid license key for this item? If so, claim it as a vendor and earn on every sale.

Get WP-PageNavi

or

Unlimited downloads from only $14.50/month

All purchase options will auto-renew after a year for updates. You may cancel your subscription at any time from inside your dashboard.

Additional info

WP-PageNavi promo, WP-PageNavi GPL, WP-PageNavi pricing, WP-PageNavi offer, WP-PageNavi coupon, WP-PageNavi discount, buy WP-PageNavi, WP-PageNavi download

How to Install or UpdateWP-PageNavi

1.

After checkout, download the WP-PageNavi plugin and navigate to Plugins -> Add Plugin.

2.

Click on the Upload Plugin button.

3.

Select the plugin you downloaded, and then click “Install Now.”
How to install plugins

1.

Activate our Plugin Manager on your website, and go to the Plugins For WP tab.

2.

Click on the Purchased tab to view your products.

3.

Click Install on WP-PageNavi.
How to install with the Plugin Manager

Why Download WP-PageNavi From Us?

FEATURES US OFFICIAL WEBSITE
Original Product
Full Product
Premium Features
Free Updates
Technical Support
PRICE $4.99 FULL

Don’t spend the EXTRA MONEY for support that you’ll never use. Get the plugin/theme from us, and KEEP THE MONEY IN YOUR POCKET!

WP-PageNavi

WP-PageNavi

Get it now for only

$4.99

Include free updates for one year

OR

Unlimited Downloads Software Box

Get UNLIMITED DOWNLOADS of all plugins and themes (over 12,000), starting at only:

$14.50 / mo

Include free updates for all plugins and themes

Related Items to WP-PageNavi (Included in the Unlimited Downloads Package)

WP-PageNavi

Method is a modern WordPress plugin/theme built for creators, agencies,…

Price: $4.99 || Free for members

Get WP-PageNavi

or

Unlimited downloads from only $14.50/month

WP-PageNavi

EcoLife is a clean, high-performance WordPress theme designed for organic…

Price: $4.99 || Free for members

Get WP-PageNavi

or

Unlimited downloads from only $14.50/month

WP-PageNavi

Want to replace the old ← Older posts | Newer…

Price: $4.99 || Free for members

Get WP-PageNavi

or

Unlimited downloads from only $14.50/month

You’re Fully Protected By Our 30 Day Money-Back Guarantee!

WP-PageNavi - Frequently Asked Questions

How can we sell WP-PageNavi for such a low price?

All WordPress plugins and themes, are licensed under the General Public License (GPL). This means that once we have purchased an item, we are free to redistribute it if we choose to do so. It is perfectly fine and legal for us to sell it to you for an amazing price!

How many sites can I use the WP-PageNavi on?

Unlimited. The plugins and themes are GPL-licensed, and you can use them as often as you need to, on however many sites you choose.

Do you provide updates to the products?

Yes! We provide free updates for all the items for the first 12 months.

How do I update a plugin or theme?

Updating the plugins and themes is super easy and can be done with a click of a button from inside your website’s dashboard. Alternatively, you can download the item to your computer and upload it to your website manually.

Do you provide license keys for the plugins/themes?

We do not provide license keys for the plugins, but all features should work without issues. These plugins are fully functional as-is (unless mentioned otherwise) and do not require activation for core functionality.

Will the plugin and themes work without a license key?

Yes, it will! All the plugins and themes, including the premium features of the items, will work without a license key. The license keys are only provided by the companies for updates and support. If, for some reason, you have any problem with any of the products, you’re fully backed by our 30-day money-back refund policy.