de

wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren




get_previous_posts_page_link [ WordPress Function ]

get_previous_posts_page_link ( Keine Parameter )
Gibt zurück:
  • (string|null)
Definiert in:



Retrieve previous posts page link.

Will only return string, if not on a single page or post.

Backported to 2.0.10 from 2.1.3.

Source


<?php
function get_previous_posts_page_link() {
    global 
$paged;

    if ( !
is_single() ) {
        
$nextpage intval($paged) - 1;
        if ( 
$nextpage )
            
$nextpage 1;
        return 
get_pagenum_link($nextpage);
    }
}
?>

Beispiele [ wp-snippets.com ]

Top Google Suchergebnisse

Mehr ...

Nutzerduskussionen [ wordpress.org ]

0 Nutzerkommentare

Noch keine. Sei der Erste!

Neu hinzufügen ...



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