WordPress.org

Support

Support » How-To and Troubleshooting » How do I remove the time and date stamps from Twenty 10?

How do I remove the time and date stamps from Twenty 10?

  • Been all through the templates and none of the previous code for time and date seems to be there.

    Has it been changed?

    How do I remove the date stamps from my posts and blog.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes. You can change it. It is coming from twentyten_posted_on() function which located in functions.php file. Go to line no 500 at functions.php file and remove the unwanted code.

    function twentyten_posted_on() {
    	printf( __( '<span class="meta-sep">by</span> %1$s', 'twentyten' ),
    		sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
    			get_author_posts_url( get_the_author_meta( 'ID' ) ),
    			sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
    			get_the_author()
    		)
    	);
    }

    You can use it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I remove the time and date stamps from Twenty 10?’ is closed to new replies.