WordPress – arata ultima modificare a articolului

De multe ori un articol este de cateva ori editat si raseditat. Cum poti sa arati ultima editare in WordPress?

Poti folosi urmatorul cod:

[php]
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 ". "; } ?>
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 ". "; } ?>

[/php]

Spune si tu parerea...