If wordpress is used as an information website, it usually involves posting or reprinting articles from other sites. We need to mark the article source. Because the page is beautiful, it is generally indicated under the title of the article body. You can use the custom topic of wordpress.
1. in the upper-right corner of the wordpress background article writing page, click "show options" as shown in, and check the "Custom columns" option in the pulled menu.
2. The "Custom topic" editing menu is added under the article editing box. Enter "author" in the name (other English letters are also supported ). Enter the author name in the value.
3. Next, set this value on the document page. Add the following to the code corresponding to the title in single. php:
<? Php echo get_post_meta ($ post-> ID, "author", true );? >
If this option is not available in the previous article, we can make a judgment:
<? Php $ author = get_post_meta ($ post-> ID, 'author', true); if ($ author) {echo "$ author";} else echo "fun "? >
In this case, "Quba" is output directly when no corresponding value exists ". The effect is as follows:
Author: Fun: http://www.vxin78.com/reprint please note!