Time in article ?

  • Anonymous

    #9005

    Good morning.

    How to display the time of publication of an article?

    Thank you

    Mod

    Kenneth John Odle

    #42566

    Use a Graphene action hook widget area.

    Install the PHP widget plugin, and then add a PHP widget to the action hook widget area.

    In that PHP widget, add

    <?php the_time('F jS, g:i a') ?>

    To format the time the way you want, check this page in the PHP manual:

    http://www.php.net/manual/en/datetime.formats.time.php

    Moved to Support. Please post in the correct section next time.

Viewing 2 posts - 1 through 2 (of 2 total)

  • You must be logged in to reply to this topic.