- This topic has 2 replies, 3 voices, and was last updated 10 years, 6 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Is there an easy way to enable post navigation (prev/next post) on a single post page ?
There is if you have added HTML 5 support to your child theme. But be warned, that HTML 5 may not work on all child themes.
I do know it works on the Genesis 2.0 sample theme.
Here's the code which you add to your child themes functions.php file after you have added support for HTML 5.
Otherwise, you can add this code instead.
Code not displaying? Grab it on Github.
Have you enabled the HTML5 support? The title says "Genesis 2", so I assume you use Genesis 2.0 Beta version and have enabled the HTML 5 support. I that's the case, you may use the code below (add the the functions.php of your child theme):
// Add post navigation (requires HTML5 theme support) add_action( 'genesis_after_entry_content', 'genesis_prev_next_post_nav', 5 );
© 2023 WPEngine, Inc.