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 next posts page link when `$display` is false, or an empty
    string when there is no next page. Nothing otherwise.
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 ) {
		return $output;
	}

	echo $output;
}