Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator cubecolour

    (@numeeja)

    This is most likely caused by your theme using
    <?php the_date(); ?>

    Which only outputs a particular value once per page, however if you replace it with

    <?php the_time(get_option('date_format')); ?>
    You can get the same date returned as many times as required

    Thread Starter photostudio311

    (@photostudio311)

    thanks cubecolour! i can’t find the code for date as you said. if it’s in posts
    it says:
    <?php the_time(‘F jS, Y’) ?> at <?php the_time() ?>.

    look somewhere else?
    thanks!

    Moderator cubecolour

    (@numeeja)

    Aha! I’ve now had a look at your theme. I originally thought you were getting the same issue I was troubleshooting a few days ago, but having re-read your post I realise it wasn’t the same thing.

    The loop in your index.php doesn’t have any date or time stuff, so at a guess, to add this is I’d try editing the index.php & add:

    <p class="post-meta"><?php the_time('F jS, Y') ?> at <?php the_time() ?></p>

    after the line

    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>

    You’ll probably have to add some rules for .post-meta in your style.css to format it. I haven’t tested this, so good luck!

    Thread Starter photostudio311

    (@photostudio311)

    Hi Cubecolour, no problem…thanks again. I looked at all the index.php files in the blog folder and none of them have the line you stated (with permalink, bookmark etc..)

    any ideas? Thanks!

    Moderator cubecolour

    (@numeeja)

    its the index.php in your theme which you need to be looking at

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Date not Showing (not multiple in day)’ is closed to new replies.