$next_post = get_adjacent_post(true, '', false); if ($next_post) { echo $next_post->post_title; }
$next_post = get_adjacent_post(true, '', false); if ($next_post) { $image = wp_get_attachment_image_src( get_post_thumbnail_id( $next_post->ID ), 'single-post-thumbnail' ); echo ''; }Package/Library: WordPress Core Function.