ID ); $previous_post_url = get_permalink( get_adjacent_post(false,'',true)->ID ); } if (get_next_post_link()) { $nextThumbnail = get_the_post_thumbnail( $nextPost->ID ); $next_post_url = get_permalink( get_adjacent_post(false,'',false)->ID ); } ?>