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 8 years, 7 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