Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_next_posts_page_link [ WordPress Function ]

get_next_posts_page_link ( $max_page = 0 )
Parameters:
  • (int) $max_page Optional. Max pages.
Returns:
  • (string)
Defined at:



Retrieve next posts page link.

Backported from 2.1.3 to 2.0.10.

Source


<?php
function get_next_posts_page_link($max_page 0) {
    global 
$paged;

    if ( !
is_single() ) {
        if ( !
$paged )
            
$paged 1;
        
$nextpage intval($paged) + 1;
        if ( !
$max_page || $max_page >= $nextpage )
            return 
get_pagenum_link($nextpage);
    }
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics