Forums

[resolved] Adding date/time stamp to custom fields (8 posts)

  1. skinnymuldoon
    Member
    Posted 2 years ago #

    Hi,

    I would like to know how to add a date/time stamp to custom fields when they are updated.

    Any clues?

    Jo

  2. Jonathan Dingman
    Member
    Posted 2 years ago #

    you dont need a custom field for that, just use this plugin:

    http://wordpress.org/extend/plugins/last-modified/

  3. skinnymuldoon
    Member
    Posted 2 years ago #

    Thank you, but I was after something quick and simple as it is for only one custom field that I need it and didn't really want a full plugin just for that.

    Maybe I will have to - or maybe there are some other suggestions?

    Thank you,
    SM

  4. skinnymuldoon
    Member
    Posted 2 years ago #

    Hi,

    I really need to know how to add the date/time modified to a custom field.....is it even possible?

    I have searched and googled.....!

    SM

  5. Jonathan Dingman
    Member
    Posted 2 years ago #

    try this then: http://codex.wordpress.org/Template_Tags/the_modified_time

    it's not a custom field, but I really dont think you need one

  6. skinnymuldoon
    Member
    Posted 2 years ago #

    I tried that, but when that won't work in a custom field which need to show the time and date when it was updated.
    The custom field will show sea conditions for diving and it needs to show the time updated to make it relevant.
    I may have to find another way of doing it if this isn't possible.....
    SM

  7. Jonathan Dingman
    Member
    Posted 2 years ago #

    still not quite clear on what you mean.

    the modified time will get the time the post/page was last modified...

    maybe you can try explaining your question a bit clearer

  8. skinnymuldoon
    Member
    Posted 2 years ago #

    I have tried but it is not working.

    All that is showing up is the HTML part of <p>Modified: <?php the_modified_time('F j, Y'); ?> at <?php the_modified_time('g:i a'); ?></p>

    it is on a page, do you think that should make a difference?

Topic Closed

This topic has been closed to new replies.

About this Topic