'; $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 ' '.esc_html__( 'Previous Post', 'simple-days' ).''; if ($thumurl['has_image']){ echo ''; echo ''; echo ''; } echo '' . esc_html(mb_strimwidth(get_the_title($prevpost->ID), 0, 80, "...", 'UTF-8')) . ''; } 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 ''.esc_html__( 'Next Post', 'simple-days' ).' '; if ($thumurl['has_image']){ echo ''; echo ''; echo ''; } echo '' . esc_html(mb_strimwidth(get_the_title($nextpost->ID), 0, 80, "...", 'UTF-8')) . ''; } echo '';
' . esc_html(mb_strimwidth(get_the_title($prevpost->ID), 0, 80, "...", 'UTF-8')) . '
' . esc_html(mb_strimwidth(get_the_title($nextpost->ID), 0, 80, "...", 'UTF-8')) . '