Hello @stephenvosloo,
Thanks for writing in!
This has been requested some time ago. To be able to have the next/previous button in your site, please check out these threads: https://theme.co/apex/forum/t/next-previous-post-with-post-image/42512/4,
Assuming that the child theme is set up, please add the following code in your child theme’s functions.php file
// =============================================================================
// // Previous/next post navigation.
function add_entry_navigation(){
if( is_single() || x_is_portfolio_item() ) {
// Previous/next post navigation.
$next_post = get_next_post();
$previous_post = get_previous_post();
the_post_navigation( array(
'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentyfifteen' ) . '</span> ' .
'<span class="screen-reader-text">' . __( 'Next post:', 'twentyfifteen' ) . '</span> ' .
'<span class="post-title">%title</span>' . get_the_post_thumbnail($next_post->ID,'thumbnail'),
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentyfifteen' ) . '</span> ' .
'<span class="screen-reader-text">' . __( 'Previous post:', 'twentyfifteen' ) . '</span> ' .
'<span class="post-title">%title</span>' . get_the_post_thumbnail($previous_post->ID,'thumbnail'),
) );
}
}
add_action('x_before_view_global__comments-template', 'add_entry_navigation' );
// =============================================================================
Please note that custom coding is outside the scope of our support. Issues that might arise from the use of custom code and further enhancements should be directed to a third party developer.
We would loved to know if this has work for you. Thank you.