WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] adding timestamp to blog posts

[Resolved] adding timestamp to blog posts

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael

    @alchymyth

    Forum Moderator

    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()
    		),

    Thank you, that worked perfectly!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] adding timestamp to blog posts’ is closed to new replies.
Skip to toolbar