wp_insert_attachment()通过代码为文章添加附件(图片/文件) 原文:http://codex.wordpress.org/Function_Reference/wp_insert_attachment 翻译:黄聪@WP之魂