Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other How to use the HTML time element in blog post?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43444
    croydon86
    Participant

    Hi all

    I am developing a blog post and wish to wrap the date the blog was published around a ‘time’ tag. The code would look like this….

    However, how does the datetime attribute get updated to show the correct date? The date itself would be dynamically created via wordpress. Do I simply put the same code that generates the date into the attribute tag?

    #128503
    Senff
    Participant

    I think you’d probably end up using something like this:

    #128505
    croydon86
    Participant

    Thanks, that is what I was thinking. It seems the most logical solution

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Other’ is closed to new topics and replies.