[wp-hackers] next_posts_link's parameter $max_posts

Lutz Schröer latz at elektroelch.de
Thu Aug 14 07:35:43 GMT 2008


Hi,

during answering some support questions I ran across a mysterious 
parameter of the next_posts_link function:

function next_posts_link($label='Next Page »', $max_page=0)

What's the $max_page parameter for? In the function itself the parameter 
will be set the following way:

if ( !$max_page ) {
        $max_page = $wp_query->max_num_pages;
    }

Is it only a relict or is there a meaningful scenario to use this 
parameter? The Codex skips the explanation...

lutz



More information about the wp-hackers mailing list