• dvwp

    (@dvwordpress)


    hello.

    i would like to add the time, after the date to posts in the twentythirteen theme. which document should i edit.

    kind regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dvwp

    (@dvwordpress)

    seems i need to over-ride or make a change to functions.php line 380, but i’m not sure how.

    ideally i would like my posts to say posted (date) at (time) on th blog page the way they work in the comments timing.

    Thread Starter dvwp

    (@dvwordpress)

    here’s what i did. hope it’s right:

    $date = sprintf( '<span class="date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%5$s | %4$s</time></a></span>',
    		esc_url( get_permalink() ),
    		esc_attr( sprintf( __( 'Permalink to %s', 'twentythirteen' ), the_title_attribute( 'echo=0' ) ) ),
    		esc_attr( get_the_date( 'c' ) ),
    		esc_attr( get_the_time() ),
    		esc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ), get_the_time() )
    	);
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add post time to TwentyThirteen’ is closed to new replies.