Skip to content

Commit

Permalink
updated time on posts to show dates published not dates first created
Browse files Browse the repository at this point in the history
  • Loading branch information
acekyd committed Mar 4, 2017
1 parent f419597 commit 63a756d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion display-medium-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function posts_display($atts){
}
$items[$count]['image'] = $image;
$items[$count]['duration'] = round($post->virtuals->readingTime);
$items[$count]['date'] = isset($post->createdAt) ? date('Y.m.d', $post->createdAt/1000): "";
$items[$count]['date'] = isset($post->firstPublishedAt) ? date('Y.m.d', $post->firstPublishedAt/1000): "";

$count++;
}
Expand Down

0 comments on commit 63a756d

Please sign in to comment.