Skip to content

Instantly share code, notes, and snippets.

@anandkumar
Created May 16, 2013 15:06
Show Gist options
  • Save anandkumar/5592405 to your computer and use it in GitHub Desktop.
Save anandkumar/5592405 to your computer and use it in GitHub Desktop.
/** Add rel="next" and rel="prev" to Genesis Framework **/
function custom_post_navigation()
{
?>
<div class="prev-next">
<div class="nav-prev">
<?php previous_post_link('%link', '%title'); ?>
</div>
<div class="nav-next">
<?php next_post_link('%link', '%title'); ?>
</div>
</div>
<?php
}
add_action('genesis_before_comments', 'custom_post_navigation');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment