0815

Du musst dich anmelden um Beiträge und Themen zu erstellen. Einloggen · Registrieren

Display Last Modified Time and Date for Posts

Display the “last-modified” time for your posts by placing this code anywhere within the loop:

Posted on <?php the_time('F jS, Y') ?>
<?php $u_time = get_the_time('U');
$u_modified_time = get_the_modified_time('U');
if($u_modified_time != $u_time) {
	echo "and last modified on ";
	the_modified_time('F jS, Y');
	echo ". ";
} ?>



0