• Resolved 725522

    I am very new to WP. How do I remove the time date stamp from posts?

    I have several pages on my site, but I only use one of the pages as my blog. The other pages are “static.” How do I make it so that the date/time stamp appears on the “blog page” posts only and not the “static pages” ?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Look at your page.php template (or the custom page template you are using for your static pages) for:

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

    These are the functions that output the time/date. Just delete or comment them out.

    Thread Starter 725522

    Thank you so very much! I actually did it.

    Thank you again!

    If you don’t have a page.php file you might have to create one.

    Simply copy the code from your index, paste it into the new page.php file, and then delete the bits on time and date, before saving of course.

    great! thanks for the help ??

    jzacsh

    (@jzacsh)

    Thanks a lot! I figured out how to do it with this post’s help. Mine looked different, so for anyone else using this thread as resolution:

    what I had to delete looked like this:

    <span class=”date”><?php the_modified_time(__(‘F jS, Y’, ‘inove’)); ?></span>

    Thanks hullabamoo! Been trying to figure this out for ages, cheers!

    I have the same problem. both the static pages and blog page display the timestamp, author, etc.

    the page.php file does not have anything related to timestamp in it.

    the index.php file has the following code which appears to execute for both static and blog pages.

    What needs to be modified so that only th blog page displays the timestamp, etc.?

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>
    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h2>” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(); ?></h2>
    <h6><?php the_time(‘l, F jS, Y’); ?> | Author: <?php the_author(); ?> | <?php the_category(‘, ‘); ?> | <?php comments_popup_link(__(‘No Comments’), __(‘1 Comment’), __(‘% Comments’)); ?></h6>

    <?php the_content(‘Continue Reading…’); ?>
    <?php the_tags(‘<p class=”tags”>Tags: ‘, ‘, ‘, ‘</p>’); ?>

    <div class=”clear”></div>

    </div>
    <?php endwhile; ?>

    Sorry to dig up this old post, but I just want to remove the time and date of 1 page, not all the posts, etc…

    I am using wordpress as the website engine…so would I still want to modify the page.php as stated in Xamataca’s post??

    Thank you for your help…
    Website: https://www.dstech1.com
    WP 2.7.1
    Inove theme

    Main Index Template (index.php)

    It’s there, but that seems to control all of the pages.

    You could take it out and then add back in your date stamps to the needed pages manually.

    Yeah, I get it to remove for all pages. But I would like the posts to have the time/date stamp….

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Delete or Remove Time/Date Stamp’ is closed to new replies.