next_posts_link

Displays the next posts page link.

Description

next_posts_link( (constant) $label = null, (int) $max_page = 0 ); 

Parameters (2)

0. $label — Optional. (constant) => null
Content for link text.
1. $max_page — Optional. (int)
Max pages. Default 0.

Usage

  1. if ( !function_exists( 'next_posts_link' ) ) { 
  2. require_once ABSPATH . WPINC . '/link-template.php'; 
  3.  
  4. // Content for link text. 
  5. $label = null; 
  6.  
  7. // Optional. Max pages. Default 0. 
  8. $max_page = -1; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = next_posts_link($label, $max_page); 
  12.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/link-template.php  
  1. function next_posts_link( $label = null, $max_page = 0 ) { 
  2. echo get_next_posts_link( $label, $max_page );