Forums

[resolved] Adding date and time to posts (3 posts)

  1. myra.cherchio
    Member
    Posted 10 months ago #

    I downloaded the Delicate theme, and now that I've nearly finished customizing it, I noticed that it doesn't display the date and time next to my posts. Would someone mind telling me what code I should add and where?

    I would appreciate your help so much!

  2. Christine
    Moderator
    Posted 10 months ago #

    The code you want to add is this:

    <?php the_time('F dS, Y'); ?>

    You can add it your index.php in here:

    <small><?php _e('Posted by','nattywp'); ?> <span class="author"><?php theme_get_profile() ?></span> <?php _e('in','nattywp'); ?> <?php the_category(' | ');?> - (<?php comments_popup_link(__('0 Comments', 'nattywp'), __('1 Comments', 'nattywp'), __('% Comments', 'nattywp')); ?>)</small> <?php edit_post_link(__('Edit','nattywp'), ' | ', ''); ?>

    Once you've added at the right spot and you like how it looks, you can also add it your archive.php and single.php

  3. myra.cherchio
    Member
    Posted 10 months ago #

    Thank you so much Christine!

Reply

You must log in to post.

About this Topic

Tags