Add Single Post Navigation Links in Genesis

Genesis has a function which is not active (in most themes) that allows post navigation from older to later posts when viewing in single posts view. That function is genesis_prev_next_post_nav and is found in genesis/lib/structure/post.php

So to add the navigation below the post, add a snippet to your themes functions.php,  you can use

add_action( 'genesis_entry_footer', 'genesis_prev_next_post_nav' );

genesis-single-post-navigation

So here the navigation will appear at the footer as we used the hook genesis_entry_footer

To add navigation links to custom post types check out the way to so here.

 

 

7 Comments

  1. Cheryl on March 16, 2019 at 9:58 pm

    Hi, I know this is an old post, but I’d tried everything to get post navigation and nothing worked until I found this post and tried it. Thank you!!!!

  2. Paal Joachim Romdahl on January 15, 2016 at 6:12 pm

    That is a very useful snippet!
    Thank you Neil!

  3. Clay on January 5, 2016 at 1:58 am

    Is it possible to modify it to work on custom post types? It works beautifully on posts but I can’t seem to make it work on custom post types.

  4. Sandee on December 29, 2015 at 1:41 am

    Great little snippet — I’ve been looking for this one! Thanks, Neil!

    • Neil Gee on December 29, 2015 at 6:57 am

      Yes it’s a hidden suprise that one.

Leave a Comment