Un motore di ricerca WordPress per sviluppatori e autori di temi



previous_posts ›

Da0.71
Deprecaton/a
previous_posts ( $echo = true )
Parametri:
  • (bool) $echo Optional. Whether to echo the link. Default true.
    Richiesto: No
    Default: true
Ritorna:
  • (string|void) The previous posts page link if `$echo = false`.
Definito a:
Codex:

Displays or retrieves the previous posts page link.



Sorgenti

function previous_posts( $echo = true ) {
	$output = esc_url( get_previous_posts_page_link() );

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