This post was last updated ago. Some of the ideas/considerations/tips presented on this post might not be up to date with the latest trends and/or best practices.
· '.$prefix.' '.$read_text.''.$suffix.'';
}
}
// get image src for featured image
function get_post_img_src($post) {
$thumb_id = get_post_thumbnail_id();
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'thumbnail-size', true);
$thumb_url = $thumb_url_array[0];
return $thumb_url;
}
// costum post navigation
function ab_post_navigation() {
$previous = (is_attachment()) ? get_post(get_post()->post_parent) : get_adjacent_post(false, '', true);
$next = get_adjacent_post(false, '', false);
if(!$next && !$previous) { return; } ?>