Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #458277

    Hi guys, just wondering if you could help me out with adding a date last modified feature to pages in enfold.

    I used a code block and added this code to it –

    <SCRIPT LANGUAGE=”JavaScript”>
    update = new Date(document.lastModified)
    theMonth = update.getMonth() + 1
    theDate = update.getDate()
    theYear = update.getFullYear()
    document.writeln(“<H6>Date last modified: ” + theDate + “/” + theMonth + “/” + theYear + “</H6>”)
    </SCRIPT>

    Sadly, it only shows the current date, for the past two days I’ve left that page alone and each day it’s changed.

    Hope you can help.

    Thanks,
    Matt

    #458596

    Hey Matt!

    Your just trying to display when the post was last modified right? Try this plugin out, https://wordpress.org/plugins/site-last-modified/, it says it has a shortcode and template function available.

    Regards,
    Elliott

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.