Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Previous and Next Post navigation in the same category in single Posts only
- add_action('genesis_after_entry', 'sk_custom_post_nav');
- function sk_custom_post_nav() {
- if ( !is_singular('post') )
- return;
- echo '<div class="prev-next-post-links">';
- previous_post_link('<div class="previous-post-link">« Previous Post: %link</div>', '<strong>%title</strong>', true);
- next_post_link('<div class="next-post-link">Next Post: %link »</div>', '<strong>%title</strong>', true);
- echo '</div>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement