Replace hardcoded date and time formats with wp_option

This commit is contained in:
2019-01-19 13:10:35 +00:00
parent 4a40f3c45b
commit e83f7c4eb8
5 changed files with 5 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ $results = $wp_query->found_posts;
content => get_the_excerpt(),
author => get_the_author_meta('nickname'),
comments => get_comments_number(),
date => get_the_date('jS F, Y', $id) . ' at ' . get_the_date('H:i', $id),
date => get_the_date(get_option('date_format'), $id) . ' at ' . get_the_date(get_option('time_format'), $id),
);
get_template_part('partials/excerpt')
?>