Some netizens asked questions. Because he is a multi-author website, he often needs to modify the author when publishing an article. On The WordPress article editing page, you need to drop down the page to the bottom to modify the author, which is a little troublesome, can I move the author module to the publishing module in the upper right corner for more convenient clicks.
To meet this requirement, we don't have to worry about it. You just need to drag the author module to the upper right corner. If you don't understand it, you can see the following animated demonstration:
If you still find this inconvenient, you must move the author's drop-down box to the release module, as shown in the following figure:
= Original status =
= Move the Author to the publishing module =
Add the following php code to functions. php in your current topic directory:
Add_action ('admin _ menu ', 'remove _ author_metabox ');
Add_action ('post _ submitbox_misc_actions ', 'Move _ author_to_publish_metabox ');
Function remove_author_metabox (){
Remove_meta_box ('authordiv ', 'post', 'normal ');
}
Function move_author_to_publish_metabox (){
Global $ post_ID;
$ Post = get_post ($ post_ID );
Echo '<div id = "author" class = "misc-pub-section" style = "border-top-style: solid; border-top-width: 1px; border-top-color: # EEEEEE; border-bottom-width: 0px; "> Author :';
Post_author_meta_box ($ post );
Echo '</div> ';
}
Original article: http://www.ludou.org/move-author-metabox-publish-metabox-wordpress.html