WordPress.org

Forums

Remove the time from recent posts.. (3 posts)

  1. Lawcom
    Member
    Posted 5 years ago #

    I would like to remove the time from the time and date stamp on my recent posts, anyone know how to do this ?

    Really don't want people to know I am still up talking nonsense at 4am lol ;)

    Just having the date of the post is fine...

  2. stvwlf
    Member
    Posted 5 years ago #

    you can edit the time format in the theme template file code that displays the date/time.

    From the documentation for the_time()

    <p>Posted: <?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?></p>

    This part displays the time at <?php the_time('g:i a'); ?>
    The 1st part displays the date

  3. Shane G
    Member
    Posted 5 years ago #

    Hi,

    To remove date/time from post you need to edit page.php file of your theme folder..and remove some code which are mentioned in this URL:

    [spam link moderated]

    Thanks,

    Shane G.

Topic Closed

This topic has been closed to new replies.

About this Topic