WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Delete or Remove Time/Date Stamp (11 posts)

  1. Anonymous
    Unregistered
    Posted 6 years ago #

    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" ?

  2. Xamataca
    Member
    Posted 6 years ago #

    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.

  3. Anonymous
    Unregistered
    Posted 6 years ago #

    Thank you so very much! I actually did it.

    Thank you again!

  4. hullabamoo
    Member
    Posted 6 years ago #

    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.

  5. Scrampy
    Member
    Posted 5 years ago #

    great! thanks for the help :)

  6. jzacsh
    Member
    Posted 5 years ago #

    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>

  7. Fryy
    Member
    Posted 5 years ago #

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

  8. sailpilot
    Member
    Posted 5 years ago #

    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; ?>

  9. mfurrer
    Member
    Posted 5 years ago #

    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: http://www.dstech1.com
    WP 2.7.1
    Inove theme

  10. CenFlo
    Member
    Posted 5 years ago #

    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.

  11. mfurrer
    Member
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic