1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 09:13:38 +01:00

fix php error caused by blogFeatures function

This commit is contained in:
Matthias Kretschmann 2016-03-10 13:29:02 +01:00
parent 94712bf4de
commit b66c5a4e02

View File

@ -361,7 +361,7 @@ class Subtemplate {
$postTitle = $feature->post_title; $postTitle = $feature->post_title;
$url = get_permalink($feature->ID); $url = get_permalink($feature->ID);
$content = substr($feature->post_content, 0, 144) . '...'; $content = substr($feature->post_content, 0, 144) . '...';
$date = date('F Y',$feature->post_date); $date = date('F Y', strtotime($feature->post_date));
$image = wp_get_attachment_image_src(get_post_thumbnail_id($feature->ID),'blog-feature-crop')[0]; $image = wp_get_attachment_image_src(get_post_thumbnail_id($feature->ID),'blog-feature-crop')[0];
if ($page == "home") { if ($page == "home") {