Hi,
since ENFOLD’s newest update, I don’t know how to implement my old code for showing the “updated date”, when a post has been updated.
I don’t know how to implement my code in the new ENFOLD loop-index.php with all these “echo”-snippets ;-)
Here the old loop-index.php with my code:
<span class='post-meta-infos'>
<span class='date-container minor-meta'><?php the_time('j. M. Y') ?></span>
<!-- START DISPLAY UPDATE INFO -->
<?php if(strtotime($post->post_modified) - strtotime($post->post_date) > 86400) {
echo "<div class='aktualisiert'>(aktualisiert: ",
the_modified_date('j. M. Y').')</div>';
}
?>
<span class='text-sep'>|</span>
and now the new loop-index.php is this:
echo "<span class='post-meta-infos'>";
echo "<span class='date-container minor-meta'>".get_the_time('j. M. Y')."</span>";
echo "<span class='text-sep'>|</span>";
How can I implement in this now my code
<!-- START DISPLAY UPDATE INFO -->
<?php if(strtotime($post->post_modified) - strtotime($post->post_date) > 86400) {
echo "<div class='aktualisiert'>(aktualisiert: ",
the_modified_date('j. M. Y').')</div>';
}
?>
Thanks for any help, appreciate!
sorry, forget it, I was in the wrong theme folder!