$prevPost = get_previous_post();
$prevThumbnail = get_the_post_thumbnail( $prevPost->ID, 'thumbnail' , array( 'class' => 'dp_pp' ) );
$ddpd = "$prevThumbnail
";
previous_post_link( '%link', $ddpd );?>
GAP Gretna
Project Duration – 6 weeks
$nextPost = get_next_post();
$nextThumbnail = get_the_post_thumbnail( $nextPost->ID, 'thumbnail' , array( 'class' => 'dp_np' ) );
$ddnd = "$nextThumbnail
";
next_post_link( '%link', $ddnd );?>
$dprev = "
" . get_the_title($prevPost->ID) . "
";
previous_post_link( '%link', $dprev );?>
$dnext = "
" . get_the_title($nextPost->ID) . "
";
next_post_link( '%link', $dnext );?>