Forums

Remove author name for the post (2 posts)

  1. mkraudy
    Member
    Posted 1 year ago #

    My site is http://www.wearegraftedin.com

    How do I remove "by admin" at the top of each post indicating who posted it? I just want the date there.

  2. Kapil Chugh
    Member
    Posted 1 year ago #

    For this you need to change your functions.php

    Replace your twentyten_posted_on function with this function

    function twentyten_posted_on() {
    printf( __( '<span class="%1$s">Posted on</span> %2$s ', 'twentyten' ),
    'meta-prep meta-prep-author',
    sprintf( '<span class="entry-date">%3$s</span>',
    get_permalink(),
    esc_attr( get_the_time() ),
    get_the_date()
    )
    );
    }

Topic Closed

This topic has been closed to new replies.

About this Topic