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.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!