WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Last Entry per page: no date? (3 posts)

  1. zkemeny
    Member
    Posted 7 years ago #

    I'm having an odd problem: the posts are all displaying the date/time properly, like so:

    Saturday September 23, 2006 | 12:43

    EXCEPT for the LAST post on every page, which looks like this:

    | 12:43

    So, time displays fine, but no Date. If I delete that particular entry, or add a new one, causing it to either move up, or jump to the beginning of the next page, problem disappears.

    Here's a snippet of the code in The Loop:

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <h1>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?> </h1>
    <div class="descr"><?php the_date() ?> | <?php the_time() ?> by <span class="author"><?php the_author() ?></span><?php echo c2c_get_custom('dateline', ' in <span class="author">', '</span>'); ?></div>
    <div class="entry">

    Any help much appreciated.

    Thanks!

    .z

  2. moshu
    Member
    Posted 7 years ago #

  3. zkemeny
    Member
    Posted 7 years ago #

    Aha! Thanks Moshu! And I promise next time I'll rtfm. :D

    .m

Topic Closed

This topic has been closed to new replies.

About this Topic