Tagged: , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27923

    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!

    #135833

    sorry, forget it, I was in the wrong theme folder!

    #135834

    Hey,

    Glad you figured it out. :)

    Cheers,

    Ismael

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘loop-index.php: right syntax for updated post date please’ is closed to new replies.