Get Field Update Date
-
Hi there, I have been using the following code to add an icon to recently updated posts.
<?php $mylimit=3 * 86400; //days * seconds per day $post_age = date('U') - get_the_modified_time('U'); if ($post_age < $mylimit) { echo '<span class="menu-icon-update">'; echo '</span>'; } ?>Is there any way to get the date that a specific field has been updated? For example if a new file had been added to a field, it might be nice to highlight that change. I’m not sure if that’s possible, but I thought I would ask.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Get Field Update Date’ is closed to new replies.