Skip to content

Instantly share code, notes, and snippets.

@rotisoft
Created November 14, 2017 00:35
Show Gist options
  • Save rotisoft/3f4f7c4ea0b6b65ff683bff8757fab7b to your computer and use it in GitHub Desktop.
Save rotisoft/3f4f7c4ea0b6b65ff683bff8757fab7b to your computer and use it in GitHub Desktop.
$send_time_rs = get_the_time('c');
$updated_time_rs = get_the_modified_time('c');
echo '<time class="published" style="display: none;" datetime="';
echo $send_time_rs;
echo '">';
echo $send_time_rs;
echo '</time> ';
if($send_time_rs!==$updated_time_rs) {
echo '<time class="updated" style="display: none;" datetime="';
echo $updated_time_rs;
echo '">';
echo $updated_time_rs;
echo '</time> ';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment