wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



previous_posts › WordPress Function

Seit0.71
Veraltetn/v
previous_posts ( $display = true )
Parameter:
  • (bool) $display Optional. Whether to echo the link. Default true.
    Erforderlich: Nein
    Standard: true
Gibt zurück:
  • (string|void) The previous posts page link when `$display` is false, or an empty
    string when there is no previous page. Nothing otherwise.
Definiert in:
Codex:

Displays or retrieves the previous posts page link.



Quellcode

function previous_posts( $display = true ) {
	$link   = get_previous_posts_page_link();
	$output = $link ? esc_url( $link ) : '';

	if ( ! $display ) {
		return $output;
	}

	echo $output;
}