• Hello all,

    I’m trying to remove the date from posts.
    I’m not sure if there is a setting I have to change to remove the date or if there is a part in the code I would have to change.
    I’ve looked around at a few settings and did not see the option to not display the date in posts.

    Your assistance is greatly appreciated.

    ??

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • you have to remove it from your theme….. in index.php, also maybe single.php

    it’s gotta be a line referencing the_time or the_date

    could be more helpful with a link to your site

    Hello,

    I have a similar problem. I am super new to this and I don’t want to remove anything unless i’m sure.
    I would like to remove the date from the post on the home page where it says ‘TIP OF THE MONTH’.

    Is this possible?

    The website is: https://www.martinforsterandsons.co.uk/

    and the theme is ‘construction’

    Thanks very much

    don’t be afraid to tinker in your theme…just have a backup first in case you break anything….

    your date is going to be in index.php, it’ll look something like this
    (removing this will clear the date from any post that shows up on your front page, not just that specific post, just fyi)

    <div class="post-date">
    <span><?php the_time('d'); ?> </span>
    <?php the_time('M'); ?>
    </div>

    deleting this will clear out the date stuff….it may or may not mess with your layout a bit…depending how everything is laid out in your css (like I said, have a backup of your theme)

    Hi,

    You need to edit the single.php or page.php file of your theme and remove this code;

    <?php the_time(); ?> OR <?php the_date(); ?>

    Thanks,

    Shane G.

    Thanks guys, thats really helpful

    really helps to make a back-up then you can have a play around and not worry so much.

    Regards

    What about removing dates from “Comments”

    this method does not work.

    I have also deleted everything i can find that has date references in comments.php and archives.php.. etc and they will not go away.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Removing the date from posts’ is closed to new replies.