Display file date on wordpress page.
-
I have a WP page where I display some .gif images.
At the top of my page I show the DATE that these images were last updated.
When I update my images, I simply copy the new images over the old ones without changing the file names. This way the new images automatically display (sometimes after a page refresh) and I don’t have to change the filenames within the page links.
However, I have to manually edit the text “Updated to July 29, 2014” at the top to indicate the images have been updated.
I figured that perhaps adding some PHP code into the page to read the MODIFY DATE of one of the image files (they are all updated at the same time, so any one of them can be used) and displaying it would do the trick, but it appears you cannot just plop PHP into the page text editor box.
Any suggestions?
Thanks.
- The topic ‘Display file date on wordpress page.’ is closed to new replies.