previous_posts( bool $echo = true )

Displays or retrieves the previous posts page link.


Description Description


Parameters Parameters

$echo

(bool) (Optional) Whether to echo the link.

Default value: true


Top ↑

Return Return

(string|void) The previous posts page link if $echo = false.


Top ↑

Source Source

File: wp-includes/link-template.php

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

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

Top ↑

Changelog Changelog

Changelog
Version Description
0.71 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.