'; $prevpost = get_adjacent_post('', '', true); $nextpost = get_adjacent_post('', '', false); if ($prevpost) { $thumurl = simple_days_get_thumbnail( $prevpost->ID , 'thumbnail' , $prevpost); //wp_get_attachment_image_src (get_post_thumbnail_id ($prevpost->ID, true)); echo ''; if ($thumurl['has_image']){ echo ''; } echo '
'; } if ( $nextpost ) { $thumurl = simple_days_get_thumbnail( $nextpost->ID , 'thumbnail' , $nextpost); //$thumurl = wp_get_attachment_image_src (get_post_thumbnail_id ($nextpost->ID, true)); echo ''; if ($thumurl['has_image']){ echo ''; } echo '
'; } echo '';