+
+
Latest articles
+
+ 4,
+ ));
+ foreach ($posts as $post) {
+ $date = strtotime($post->post_date);
+ $year = date('Y', $date);
+ $month = date('F', $date);
+ $day = date('jS', $date);
+ $date = get_the_date('jS F, Y', $post->ID).' at '.get_the_date('H:i', $post->ID);
+ $excerpt = array(
+ title => $post->post_title,
+ url => get_permalink($post->ID),
+ content => $post->post_excerpt,
+ author => get_the_author_meta('nickname', $post->post_author),
+ comments => $post->comment_count,
+ date => $date,
+ );
+ echo '';
+ get_template_part('partials/excerpt');
+ echo '
';
+ }
+ ?>
+
+