WordPress article revision date tags: the_modified_date

WordPress template tags the_ modified_ Date output the last modification date of the article, which needs to be used in the main loop of the loop.

the_modified_date( string $d = '', string $before = '', string $after = '', boolean $echo = true )

Function parameters

$d

String value, default value: date format set in WordPress background options

Specifies the format of the date

$before

String value, null by default

Output before date

$after

String value, null by default

Output after date

$echo

Boolean value, default value: true

Whether to output date or only return value is output by default.

Examples of function usage

<p>Last revision date of the article: <?php the_modified_date(); ?></p>

Extended reading

the_ modified_ The date() function is located in: WP includes / general- template.php

Related tags:

  • get_ the_ date()
  • get_ the_ time()
  • the_ date()
  • get_ the_ modified_ date()
  • the_ modified_ time()
  • get_ the_ modified_ time()
  • the_ time()
Related Article
WordPress comment date tag: comment_date

WordPress template tags comment_ Date is used to output the date of a comment, usually in a custom comment template. Read more

WordPress comment summary tag: comment_excerpt

WordPress template tags comment_ Excerpt is used to output the summary of comments. The default output is 20 characters. It Read more

WordPress comment time tag: comment_time

WordPress template tags comment_ Time is used to output the publishing time of the current comment, which is the same Read more

WordPress RSS format comment author name tag: comment_author_rss

WordPress template tags comment_ author_ RSS is used to output the comment author name in RSS format, which has no Read more

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image