• Hi there,
    I have a template I have designed but for some reason only the first date of the first post shows. Posts after the first one do not show the date.
    As far as I can see I have not missed anything.
    Here is the code in a text file: http://www.nuweb.it/wp_code.txt
    Please not I have yet to do the side bars so this is only the main content.
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anonymous,
    When you have multiple posts in a single day, the date shows up only once. This is how WordPress is set up by default.
    Have a look at this thread for a way to put the date on every post.
    What version of WP are you using? If you are using 1.01 Release Candidate, then you may have to ask some of the über-coders here to look at the code and tell you if it will work with the most up-to-date version of WP.

    Thread Starter Anonymous

    Hi there Nuclear Moose,
    I think I placed a line of code in the wrong place. Sorry about that.
    I am using 1.01 and all is well now 🙂

    Moose,
    Actually, the function used in that thread isn’t really needed. I’ve removed the call to the_date function from my index.php and changed the_time to be called like this:
    <?php the_time(“F j, Y @ g:i A”) ?>
    This puts the date and time on each of my posts like this:
    January 17, 2004 @ 5:11 PM
    instead of only having the date on the most recent post of each day.
    You can change the format for the call to the_time however you like. The list of options for the format can be found here.

    MtDew,
    Thank you for clarifying that! Would you be so kind as to Wiki that under the Tips and Tricks section, please? 🙂
    Craig.

    Added. 😉

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Date only showing on first post!’ is closed to new replies.