WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Dates only showing on every other post. (7 posts)

  1. dremation
    Member
    Posted 7 years ago #

    My personal blog, located at http://williamsden.com/ is acting up. I know< I know! I've been helping alot of people around here with there problems, but this is killing me. I know I've got around 50 validation erros. But cant figure out why ever 3rd or 4th post is not showing dates. I'm using a modified version of fUnique.

    Heres the code Im using to display post ifo


    <div class="entrymeta">
    <?php _e("Filed under:"); ?> <?php the_category(',') ?> — on <?php the_date()?> — <?php edit_post_link() ?>

    </div>

  2. Easy to fix :-)

    You're using <?php the_date()?>, which will only show the date for the first post for each day.

    To get the date on every post, change that to <?php the_time() ?> and you should see a transformation.

  3. dremation
    Member
    Posted 7 years ago #

    Sure, the_time() work if you want the TIME of the post. I want the DATE of the post. The time is not important to me. Anyone?

  4. moshu
    Member
    Posted 7 years ago #

    Don't be stubborn if you got a good advice! LesBessant posted the solution.
    If you want explanation, read the Codex:
    http://codex.wordpress.org/Template_Tags/the_date

  5. spencerp
    Member
    Posted 7 years ago #

    EDITED* Oh, sorry moshu..wasn't quick enough lol. =)

    This is what you want: <?php the_time('F jS, Y') ?>

    Straight from my blog's theme..example there too, under the post title. ;)

    spencerp

    Yeah, Les had the right tag, just..follow the link moshu gave though, for future reference purposes.. ;) =)

  6. dremation
    Member
    Posted 7 years ago #

    Sorry, been an early morning and my mind wasn't open. Thanks alot spencerp. I have no idea why I couldn't figure that out.

  7. spencerp
    Member
    Posted 7 years ago #

    No problem. =) Don't feel bad, I haven't slept yet, so my thinking ability isn't too hot now either lol.. =P Can ya mark this resolved now..? ;)

    spencerp

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.