Is there a simple way to use the post thumbnail when calling previous_post_link()
and next_post_link()
?
Leave a Reply
You must be logged in to post a comment.
Is there a simple way to use the post thumbnail when calling previous_post_link()
and next_post_link()
?
You must be logged in to post a comment.
This could be acheived by using the
get_previous_post()
andget_the_post_thumbnail()
functions. Then just pass the thumbnail value into the second parameter ofprevious_post_link()
.