In the past, I wrote a tutorial titled How to add links to Previous Post and Next Post on single Posts in Genesis.
Adjacent entry navigation added via
add_action( 'genesis_entry_footer', 'genesis_prev_next_post_nav' );
will appear in between the .entry and #respond.
What if you want to show it in a different place or have it appear at another additional location on the single post pages?
genesis_prev_next_post_nav function to another action hook is not going to work.
The answer is to create a custom function based on
genesis_adjacent_entry_nav() and hook it to our desired location.
Once done, to get the links to previous and next posts to appear before for example, content+sidebar and below the comment form we just add
add_action( 'genesis_before_content', 'custom_adjacent_entry_nav' ); add_action( 'genesis_after_loop', 'custom_adjacent_entry_nav' );
custom_adjacent_entry_nav is the name of the custom function)
Add the following in child theme's functions.php:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.