• My wordpress themes date and time for each post somehow got deleted.

    How do I display date and time in each post? here is my site:
    freenewwebsitetraffic.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter cynthiawinters

    (@cynthiawinters)

    Thanks so much Michael =)

    You have pointed me in the right direction, hehe. I read the template time WordPress tutorial, however they did not specify on where to put the code. Should I add it to my pages.php / singles.php / or?

    And also, where in the page should I put this code?

    depends where you want it to show.

    index.php for your posts page
    page.php for single pages
    single.php for individual post page
    etc

    This is a generalization…..theme’s can be unique
    where you put the code depends on where you want it displayed
    Mine is next to my categories for instance

    <div class="date"><span>Posted by <?php the_author_posts_link(); ?> under <?php the_category(', '); ?> on <?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?></span></div>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display the date and time?’ is closed to new replies.