• Any one could help me to remove author, date and comments from all post, I already tried CSS method, 2/ 3 plugins including (WP Author, Date and Meta Remover, Remove/hide Author, Date, Category Like Entry-Meta etc.) But that hadn’t worked.

    Kindly guide me, I am using wordpress 4.8.2 & latest updated version of myknowledgebase theme.

    • This topic was modified 7 years, 5 months ago by bravebravo.
    • This topic was modified 7 years, 5 months ago by bravebravo.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    you can give it a try via MySQL

    UPDATE wp_posts
    SET post_author= “”
    SET post_date=””
    set post_date_gmt=””

    Backup before you try this!!
    I didnt try it myself
    the set “” command make the DB-field empty
    This should result in a no show,

    But if you dont like to show the author info and publish date in your post; there is a much easier way:
    Look in your theme for:

    <?php printf( __( ‘Posted on %s’, ‘myknowledgebase’ ), ‘<time class=”updated” datetime=”‘. esc_html( get_the_date(‘c’) ).'”>’. esc_html( get_the_date() ).'</time>‘ ); ?–> <!–?php echo ‘|’; ?>
    <!php printf( __( ‘By %s’, ‘myknowledgebase’ ), sprintf( ‘<span class=”author vcard”>%2$s</span>’, esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ), esc_html( get_the_author() ) ) ); ?>

    grey it out using <!– ?php …… ?–>

    hope this might help

    Good luck

    • This reply was modified 7 years, 5 months ago by marsjes. Reason: additional explaination
    Theme Author Guido

    (@guido07111975)

    Hi,

    If you want to remove whole postmetadata section, just do this using some custom CSS in the customizer:

    
    .postmetadata {display:none;}
    

    @marsjes: thanks for your response. If you paste code please click the “code” button before and after your code.

    Guido

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove author date and comments from wordpress’ is closed to new replies.