Skip to content

Commit 63a756d

Browse files
committed
updated time on posts to show dates published not dates first created
1 parent f419597 commit 63a756d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

display-medium-posts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function posts_display($atts){
148148
}
149149
$items[$count]['image'] = $image;
150150
$items[$count]['duration'] = round($post->virtuals->readingTime);
151-
$items[$count]['date'] = isset($post->createdAt) ? date('Y.m.d', $post->createdAt/1000): "";
151+
$items[$count]['date'] = isset($post->firstPublishedAt) ? date('Y.m.d', $post->firstPublishedAt/1000): "";
152152

153153
$count++;
154154
}

0 commit comments

Comments
 (0)