Core Function
View Source on Trac ↗ the_date()
the_date( mixed $format = '', mixed $before = '', mixed $after = '', mixed $display = true ) Displays or retrieves the date of the post (once per date).
Parameters 0 required
| Name / Type | Description |
|---|---|
| $format string | Optional. PHP date format. Defaults to the 'date_format' option. |
| $before string | Optional. Output before the date. Default empty. |
| $after string | Optional. Output after the date. Default empty. |
| $display bool | Optional. Whether to echo the date or return it. Default true. |
Return Value
((string)
| void) String if retrieving.
Function Information
Since Version
0.71
Source File
wp-includes/general-template.php
Advertisement