よくある記事の時間表示方法としては、以下の書き方。
<?php echo get_the_date('Y.m.d'); ?>
年・月・日を分けて出力する方法
<?php
$post_year = get_the_date('Y');
$post_month = get_the_date('m');
$post_day = get_the_date('d');
?>
<?php echo $post_year ?> 年
<?php echo $post_month ?>月
<?php echo $post_day ?> 日
d:先頭にゼロがついた日。01 – 31
j:先頭にゼロがつかない日。1 – 31
m:先頭にゼロがついた月。01 – 12
n:先頭にゼロがつかない月。1 – 12
F:フルスペルの月。日本語環境下では1月 – 12月、英語環境下ではJanuary – Decemberと表示される
Y:西暦。たとえば2018など