Always post all article with the same author name
-
Hello,
On my WordPress there are many authors who work together on the same articles. I would like to automatically post those articles with the same author name.
I tried to modify wp_publish_post() in post.php by adding this line:
$wpdb->update( $wpdb->posts, array( 'post_author' => 22 ), array( 'ID' => $post_id ) );
but that do not work
Someone can help me ?
- The topic ‘Always post all article with the same author name’ is closed to new replies.