Wordpress Document

Author tags

Category tags

Comment tags

Date and Time tags

General tags

Geo tags

Link tags

Links Manager tags

Permalink tags

Post tags

Trackback tags

WP/PHP General

the_date

概要

投稿日を表示または返します

用法

<?php the_date('format', 'before', 'after', echo); ?>

引数

format (string)

(string)
日付の書式を指定(デフォルト: Wordpressで設定された日付書式)

before (string)

(string)
日付の前に表示される文字

after (string)

(string)
日付の後に表示される文字

echo (boolean)

TRUE
日付を表示します(デフォルト)
FALSE
プログラム中で使用出来るように日付(文字列)を返します

用例

-