How to Use Thumbnails for Previous/Next Navigation in WordPress?
I searched on the internet and there were sevearl solutions but not work for me.
Here is one example i used but failed:
<?php
$prevPost = get_previous_post();
$prevthumbnail = get_the_post_thumbnail($prevPost->ID, array(150,150) );
previous_post_link('%link',''.$prevthumbnail.'', TRUE);
?>
<p class="prev_next2"><?php previous_post_link('%link','<') ; ?>
<?php
$nextPost = get_next_post();
$nextthumbnail = get_the_post_thumbnail($nextPost->ID, array(150,150) );
next_post_link('%link',''.$nextthumbnail.'', TRUE);
?>
<p class="prev_next2"><?php previous_post_link('%link','>') ; ?></p>