Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_previous_posts_link [ WordPress Function ]

get_previous_posts_link ( $label = null )
Parameters:
  • (string) $label Optional. Previous page link text.
Returns:
  • (string|null)
Defined at:



Return the previous posts page link.

Source


<?php
function get_previous_posts_link$label null ) {
    global 
$paged;

    if ( 
null === $label )
        
$label __'&laquo; Previous Page' );

    if ( !
is_single() && $paged ) {
        
$attr apply_filters'previous_posts_link_attributes''' );
        return 
'<a href="' previous_postsfalse ) . "\" $attr>"preg_replace'/&([^#])(?![a-z]{1,8};)/i''&#038;$1'$label ) .'</a>';
    }
}
?>

Examples [ wp-snippets.com ]

Top Google Search Results

More ...

User discussions [ wordpress.org ]

0 User Note(s)

None yet. Be the first!

Add New ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics