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

@@ -18,7 +18,7 @@
<ol>
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<?php $username = get_the_author_meta('nickname') ?>
<?php $date = get_the_date('jS F, Y', $id).' at '.get_the_date('H:i', $id) ?>
<?php $date = get_the_date(get_option('date_format'), $id).' at '.get_the_date(get_option('time_format'), $id) ?>
<li>
<div class="excerpt">
<div class="excerpt__head">