Wordpress Document

Author tags

Category tags

Comment tags

Date and Time tags

General tags

Geo tags

Link tags

Links Manager tags

Permalink tags

Post tags

Trackback tags

WP/PHP General

posts_nav_link

概要

次のページと前のページへのリンクを表示します。
通常はインデックスページ、カテゴリー、アーカイブの"Paged"ナビゲーションの中で使用します。
次・前のページへのリンクを個別に表示するには、next_post_link()とprevious_post_link()を使用して下さい。

用法

<?php posts_nav_link('sep', 'prelabel', 'nxtlabel'); ?>

引数

sep (string)

リンクの間に表示します。
デフォルト:' :: ' (Wordpress1.2)、' - ' (Wordpress1.5)

prelabel (string)

前のページへのリンクのラベルに使用します。
デフォルト:' << Previous Page ' Wordpress1.2、' » ' Wordpress1.5

用例

-