• Resolved Bruno Duraes

    (@bruno-duraes)


    Hello Friends! Sorry about the Abuse

    But I was wondering how do I put the time of the Hueman theme so,

    For example:

    By Bruno Dur?es – In August 15, 2015 at 23:55 – updated to 00:00

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Bruno. Not sure what you mean by “future update”. I’m not aware of any easy way to schedule a post update and display that scheduled time to the user. If you mean you want to display the last time the post was modified you can do this:

    1. Copy single.php to a child theme.
    2. Replace this line:

    <p class="post-byline"><?php _e('by','hueman'); ?> <?php the_author_posts_link(); ?> &middot; <?php the_time(get_option('date_format')); ?></p>

    with this:

    <p class="post-byline">
    <span style="text-transform:capitalize;">
      <?php _e('By','hueman'); ?>
      <?php the_author_posts_link(); ?>
      - In <?php the_time('F j, Y'); ?>
    </span>
    <span style="text-transform:lowercase;">
      at <?php the_time('G:i'); ?>
      - updated to <?php the_modified_time('G:i'); ?>
    </span>
    </p>

    Using inline styles to override the default theme css which transforms it all to upper case. I broke up the line into pieces so it would be easier to see the changes. You could string it all together in one long line like the original code if you want to.

    Thread Starter Bruno Duraes

    (@bruno-duraes)

    That’s exactly what I was needing.

    Thank you very much for your help bdbrow.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to put the time of the posts and the time for a future update of the post?’ is closed to new replies.