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
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ class Subtemplate {
$postTitle = $feature->post_title;
$url = get_permalink($feature->ID);
$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];
if ($page == "home") {