jmccole83
8/22/2018 - 8:42 PM

Previous and Next post links

Add the below snippet to the single post template for links to previous and next posts.

// Default settings, outputs <<, >> and post title
<?php previous_post_link(); ?> 
<?php next_post_link(); ?> 

// Custom Text
<?php previous_post_link('%link', 'Previous'); ?> 
<?php next_post_link('%link', 'Next'); ?>