Advertisement
srikat

Untitled

Dec 15th, 2013
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. // Previous and Next Post navigation in the same category in single Posts only
  2. add_action('genesis_after_entry', 'sk_custom_post_nav');
  3. function sk_custom_post_nav() {
  4.  
  5.     if ( !is_singular('post') )
  6.         return;
  7.     echo '<div class="prev-next-post-links">';
  8.         previous_post_link('<div class="previous-post-link">&laquo; Previous Post: %link</div>', '<strong>%title</strong>', true);
  9.         next_post_link('<div class="next-post-link">Next Post: %link &raquo;</div>', '<strong>%title</strong>', true);
  10.     echo '</div>';
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement