</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 } ?>
function next_post_link($format = '%link »', $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>'; } }