Choose from any of the following functions:
get_next_post_link();next_post_link();get_previous_post_link();previous_post_link();
Parameters are as follows (in respective order):
@paramstring$formatOptional. Link anchor format. Default ‘« %link’.@paramstring$linkOptional. Link permalink format. Default ‘%title’.@parambool$in_same_termOptional. Whether link should be in a same taxonomy term. Defaultfalse.@paramarray|string$excluded_termsOptional.Arrayor comma-separated list of excluded term IDs. Defaultempty.@paramstring$taxonomyOptional. Taxonomy, if$in_same_termistrue. Default ‘category’.
@returnstringThe link URL of the next post in relation to the
current post.
Optionally, you could do more with your pagination if you opted for more labor. You could use get_next_post(); or get_previous_post(); These two functions would allow you to retrieve the entire next/previous post object. You could then retrieve post meta, featured image, post format, post excerpt, etc.
Parameters are as follows (in respective order):
@parambool$in_same_termOptional. Whether post should be in a same taxonomy term. Defaultfalse.@paramarray|string$excluded_termsOptional.Arrayor comma-separated list of excluded term IDs. Defaultempty.@paramstring$taxonomyOptional. Taxonomy, if$in_same_termistrue. Default ‘category’.
@returnnull|string|WP_PostPost objectif successful.Nullif
global $postis not set.Emptystringif no corresponding post
exists.
All of this (and more) can be found in ./wp-includes/link-template.php