previous_posts

Advertisement

Summery Summery

Displays or retrieves the previous posts page link.

Syntax Syntax

previous_posts( bool $echo = true )

Parameters Parameters

$echo

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

Default value: true

Return Return

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

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;
	}

Advertisement

Changelog Changelog

Changelog
Version Description
0.71 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.