Working on some next/previous post links with thumbnails and cannot seem to get the images to display.
I have no problem with the links themselves, but I seem to be missing something in terms of pulling the thumbnail of the adjacent post(s)
Any insight would be appreciated!
with code like this:
<?php $prev_post = get_previous_post(); if (!empty( $prev_post )): ?> <a href=""<?php">ID ); ?>"><?php echo $prev_post->post_title; ?></a> <?php endif; ?>
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.