コード例 #1
0
</p>

      </a>

    <?php 
}
?>

    <a class="menu" href="/blog">Home</a>

    <?php 
if (next_post_link_url()) {
    ?>

      <a href="<?php 
    echo next_post_link_url();
    ?>
" class="next">

        <span class="label">Next article</span>

        <p class="title"><?php 
    echo next_post_link_title();
    ?>
</p>

      </a>

    <?php 
}
?>
コード例 #2
0
ファイル: navigation.php プロジェクト: lamenath/fbp
function next_post_link($format = '%link &raquo;', $link = '%title', $in_same_term = false, $excluded_terms = '', $taxonomy = 'category')
{
    $url = next_post_link_url();
    if ($url) {
        $label = str_replace('%link', htmlentities($next->getText('post.title')), $format);
        echo '<a href="' . $url . '">' . $label . '</a>';
    }
}