On the WordPress article editing page, move the author module to the publishing module.

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.