WordPress.org

Ready to get started?Download WordPress

Forums

Not "the_time" call (2 posts)

  1. szdavid
    Member
    Posted 9 years ago #

    Hello,

    I am using this template

    <div class="post">
    <h3 class="storytitle" id="post-<?php the_ID(); ?>">" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?> <span><?php edit_post_link(); ?></span></h3>

    <div class="storycontent">
    <?php the_content(); ?>
    </div>

    [Moderated: Unneeded code removed]

    And I'd like to make the date appear on each post, instead of only on the most recent post of the each day but i didn't find the "the_time" call dunction so where do I have to put "<?php the_time("F j, Y @ g:i A") ?>"

    Thx

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    <div class="post">
    <h2 class="storytitle" id="post-<?php the_ID(); ?>">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title("-image-"); ?></a> </h2>
    <h3><?php the_time() ?></h3>

    works for me.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.