Forums

Date hides on double post same day entry's. (6 posts)

  1. Axxie
    Member
    Posted 1 year ago #

    When I post a second entry (or third, forth, so on so forth) the same day, everything but the top entry's date hides, why is this? I can't see anything in the stylesheet that would cause this, then again maybe I'm being stupid.

    Help?

    http://limes-not-lemons.com/wp-content/themes/mango/style.css

    Much appreciated!

  2. Kalon
    Member
    Posted 1 year ago #

    Axxie,

    In your index.php (or whatever page you are using to display posts), use
    <?php the_time('F jS, Y') ?>
    instead of
    <?php the_date('','',''); ?> (will be something similar)

    Kalon.

  3. vud0013
    Member
    Posted 1 year ago #

    Kalon... thanks!!
    can't believe i didn't try that before, i had been wondering about it for a few days now.

  4. Kalon
    Member
    Posted 1 year ago #

    Now thats confusing... is vud0013 the same person as Axxie?

    Anyway, glad I could help.

  5. g10r3
    Member
    Posted 1 year ago #

    I need to obtain the date as a variable in PHP. I need this two times per post (one for the day, the other for the month).
    So, i use the_date('d', '', '', FALSE) and the_date('n', '', '', FALSE), but it doesn't work the second time.
    How i use the_time to obtain a date usable in PHP?

  6. Phunky
    Member
    Posted 1 year ago #

    Its been a long time since ive done WP stuff but i think there is a get_the_time() function open to you?

    Yep - a quick look on the codex and bang

Topic Closed

This topic has been closed to new replies.

About this Topic