wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



next_posts › WordPress Function

Da0.71
Deprecaton/a
next_posts ( $max_page = 0, $display = true )
Parametri: (2)
  • (int) $max_page Optional. Max pages. Default 0.
    Richiesto: No
    Default:
  • (bool) $display Optional. Whether to echo the link. Default true.
    Richiesto: No
    Default: true
Ritorna:
  • (string|void) The link URL for next posts page if `$display = false`.
Definito a:
Codex:

Displays or retrieves the next posts page link.



Sorgenti

function next_posts( $max_page = 0, $display = true ) {
	$link   = get_next_posts_page_link( $max_page );
	$output = $link ? esc_url( $link ) : '';

	if ( $display ) {
		echo $output;
	} else {
		return $output;
	}
}