JohnPaulDesign
5/8/2017 - 9:05 AM

Genesis custom next and previous post links on post page

Genesis custom next and previous post links on post page

//* Custom previous and next post links after entry
function eia_post_navigation() {
	if (!is_singular('post')) {
		return;
	}
	?>
	<div class="previous-post">
		<?php previous_post_link('%link', 'Previous: %title'); ?>
	</div>
	<div class="next-post">
		<?php next_post_link('%link', 'Next: %title'); ?>
	</div>
	<?php
	}

add_action('genesis_after_entry', 'eia_post_navigation');