WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/get previous posts link

Contents

Description

Return the previous posts pages link. Param string $label Optional. Previous page link text.

Usage

 <?php get_previous_posts_link$label ); ?> 

Parameters

$label
(string) (Optional) Previous page link text.
Default: '« Previous Page'

Return

"" (string) 
Previous page link.

Examples

Default Usage

<?php $prev get_previous_posts_link();
echo 
$prev;
?>

Change Log

Since: 2.7

Source File

get_previous_posts_link() is located in wp-includes/link-template.php.

Related

See also index of Function Reference and index of Template Tags.