WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] adding timestamp to blog posts (3 posts)

  1. RebeccaInMI
    Member
    Posted 1 year ago #

    I'm using the Third Style theme on frederic-mi.com. The person who writes the blogs would like to have a time stamp shown in addition to the date and the author. In other words, instead of

    Posted on October 15, 2012 by SoAndSo

    he'd like it to say

    Posted on October 15, 2012 at 2:35pm by SoAndSo

    What snippet of PHP do I need to add and where do I need to add it so that the time will show as well as the date?

    Third Style theme:
    http://wordpress.org/extend/themes/third-style/

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    find the function thirdstyle_posted_on() in functions.php of the theme;

    edit this section (shown after the edits):

    sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s at %4$s</span></a>',
    			get_permalink(),
    			esc_attr( get_the_time() ),
    			get_the_date(),
    			get_the_time()
    		),
  3. RebeccaInMI
    Member
    Posted 1 year ago #

    Thank you, that worked perfectly!

Topic Closed

This topic has been closed to new replies.

About this Topic