Un motore di ricerca WordPress per sviluppatori e autori di temi



next_posts ›

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

Displays or retrieves the next posts page link.



Sorgenti

function next_posts( $max_page = 0, $echo = true ) {
	$output = esc_url( get_next_posts_page_link( $max_page ) );

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