• Is there a way to post articles and not have a date shown? My articles were posted saying “posted on June 6, 2012 by Diana” and I would like to see just “posted by Diana” and no date.

    In the theme appearance, I changed the date format to show just time but this changed all the dates on my site. For example, my sitemap now shows just the time, no date. My site: https://www.bestflowergardening.com

    Thank you,
    destritt39

Viewing 2 replies - 1 through 2 (of 2 total)
  • There are two methods to do this, the first involves editing the page template in use that outputs this html. The other is to modify the CSS and add display:none; to the style in use by the element.

    I prefer the latter, and, as is widley suggested in the forum here, try FireBug to work out CSS issues.

    Note the latter does not remove the date from the source code, it just makes it not display in the browser.

    css won’t work in this case, as there is no distinction between ‘Posted’ and ‘on’ to hide the latter;

    you need to edit functions.php of your theme; find the function twentyten_posted_on() and change as shown below:

    function twentyten_posted_on() {
    	printf( __( '<span class="%1$s">Posted </span><span class="meta-sep">by</span> %2$s', 'twentyten' ),
    		'meta-prep meta-prep-author',
    		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' ) ),
    			esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
    			get_the_author()
    		)
    	);
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove date on Posts’ is closed to new replies.