diff --git a/controller/classes/Subtemplate.php b/controller/classes/Subtemplate.php index 6ae2397..419e849 100644 --- a/controller/classes/Subtemplate.php +++ b/controller/classes/Subtemplate.php @@ -369,6 +369,8 @@ class Subtemplate { $content = substr($feature->post_content, 0, 144) . '...'; $date = date('F Y', strtotime($feature->post_date)); $image = wp_get_attachment_image_src(get_post_thumbnail_id($feature->ID),'blog-feature-crop')[0]; + $blogPage = get_page_by_title('Blog'); + $blogUrl = get_permalink($blogPage->ID); $blogFeatures .= "
@@ -383,10 +385,10 @@ class Subtemplate { $result = ""; return $result;