• Whenever I make a post the date shos up but not the time. How do I get the time to appear with the date?

    Shawshank

Viewing 3 replies - 1 through 3 (of 3 total)
  • Here’s a couple of things about it:

    https://www.ads-software.com/support/topic/151007?replies=3
    https://codex.www.ads-software.com/Post_Meta_Data_Section

    Update the code in your single.php and page.php

    Thread Starter shawshank

    (@shawshank)

    Thanks…it isn’t clear to me where I’d place the neccessary code in a file that looks like this:

    <?php get_header(); ?>

    <div id=”container”>

    <?php if(have_posts()): ?><?php while(have_posts()):the_post(); ?>

    <div class=”post”>

    <div class=”postnav”>
    <?php previous_post_link(‘« %link’) ?> // <?php next_post_link(‘%link »’) ?>
    </div>

    <h2>” title=”<?php the_title(); ?>”><?php the_title(); ?></h2>

    <div class=”postinfo”>
    <?php _e(‘Posted on’); ?> <span class=”postdate”><?php the_time(‘F jS, Y’) ?></span> <?php _e(‘by’); ?> <?php the_author() ?>
    </div>

    <div class=”entry”>

    <?php the_content(); ?>
    <?php link_pages(‘<p>Pages:‘,'</p>’,’number’); ?>

    <p class=”postmetadata”>
    <?php _e(‘Tags:’); ?> <?php the_category(‘, ‘) ?> <?php edit_post_link(‘Edit’, ‘ | ‘, ”); ?> // <?php comments_popup_link(‘Add Comment »’, ‘1 Comment »’, ‘% Comments »’); ?>
    </p>

    </div>

    <div class=”comments-template”>
    <?php comments_template(); ?>
    </div>

    </div>

    <?php endwhile; ?>

    <div class=”postnav”>
    <?php previous_post_link(‘« %link’) ?> // <?php next_post_link(‘%link »’) ?>
    </div>

    <?php else: ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>

    <h2><?php _e(‘Not Found’); ?></h2>

    </div>

    <?php endif; ?>

    </div>

    <?php include (TEMPLATEPATH . ‘/leftbar.php’); ?>

    <?php get_sidebar(); ?>

    <?php get_footer() ?>

    </div></body>
    </html>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Getting time to appear’ is closed to new replies.