Codex

Function Reference/get previous posts link

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

Contents

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

Pagination: posts_nav_link(), next_posts_link(), previous_posts_link(), get_next_posts_link(), get_previous_posts_link(), paginate_links() wp_link_pages(), next_post_link(), previous_post_link(), next_image_link(), previous_image_link(),

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