Home > AI > Backend > Wordpress >

get_the_date

Retrieve the date on which the post was written.

get_the_date( string $format = '', int|WP_Post $post = null )

Example:

<small><strong>Published on: </strong><?php echo get_the_date(); ?></small>

Leave a Reply