Opened 21 years ago
Closed 20 years ago
#2374 closed enhancement (fixed)
Create a the_modified_date() Template Tag
| Reported by: | FireMotion | Owned by: | westi |
|---|---|---|---|
| Priority: | low | Milestone: | 2.1 |
| Component: | Template | Version: | 1.2 |
| Severity: | normal | Keywords: | modified, date bg|has-patch bg|commit |
| Cc: | Focuses: |
Description
Dscription
Behaviour and parameters should be the same as the_date(), except that it should run every time (the_date() only displays the date the first time it's called).
Purpose
To display the date the post/page was last modified.
Notes
This tag might not be relevant for posts, but it's relevant for pages, as they get modified more often. Furthermore, the modified date is saved in the database anyway, but the only way to retrieve it is through manual SQL, or so it seems.
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The is
the_modified_timeandget_the_modified_timewhich you could use.Like
the_timeandthe_datethese can both take a PHP timedate format string and so you can show the date from either of the above.e.g.
the_modified_time('F jS, Y');However adding
the_modified_dateandget_the_modified_datelooks like a good idea and I've hacked a patch together.Untested!