WordPress.org

Forums

How to Remove Timestamps from Posts (3 posts)

  1. masterytv
    Member
    Posted 7 years ago #

    I'm trying to make my home page look like the other pages and have no timestamp on the post.

    Does anyone know how to either:

    a) remove the timestamp from posts on the home page, or
    b) make the home page look like the other created pages and have the blog page (with timestamps) on another page?

    Thanks,
    Tom

  2. masterytv
    Member
    Posted 7 years ago #

  3. Roy
    Member
    Posted 7 years ago #

    If I understand what you mean you only have to open the index.php in a text editor and remove the timestamp part in a section that looks something like this:
    <div class="postmetadata"><?php the_time('jS F Y') ?> <!-- <?php _e('by') ?> <?php the_author() ?> --></div>

    If you keep the part in your single.php, there will be no timestamp on the index, but there will be on the single posts page. You can also edit the same part in your archives.php.

Topic Closed

This topic has been closed to new replies.

About this Topic