{"id":9040,"date":"2023-06-05T12:28:15","date_gmt":"2023-06-05T04:28:15","guid":{"rendered":"http:\/\/pro369.com\/blog\/?p=54"},"modified":"2023-06-05T12:28:15","modified_gmt":"2023-06-05T04:28:15","slug":"wordpress%e9%83%a8%e8%90%bd%e6%a0%bc%ef%bc%88%e4%ba%94%e5%80%8b%e9%9d%9e%e5%b8%b8%e5%af%a6%e7%94%a8%e6%8a%80%e5%b7%a7%ef%bc%89-2","status":"publish","type":"post","link":"https:\/\/por.tw\/blog\/2023\/06\/05\/wordpress%e9%83%a8%e8%90%bd%e6%a0%bc%ef%bc%88%e4%ba%94%e5%80%8b%e9%9d%9e%e5%b8%b8%e5%af%a6%e7%94%a8%e6%8a%80%e5%b7%a7%ef%bc%89-2\/","title":{"rendered":"wordpress\u90e8\u843d\u683c\uff08\u4e94\u500b\u975e\u5e38\u5be6\u7528\u6280\u5de7\uff09"},"content":{"rendered":"<p><strong style=\"background-color: #ffff00\"><span style=\"font-size: small\">&nbsp;&nbsp;<span style=\"font-size: small\"> wordpress\u505a\u70ba\u6700\u6d41\u884c\u7684PHP\u90e8\u843d\u683c\u7a0b\u5f0f\u7db2\u4e0a\u95dc\u806f\u5916\u639b\u7a0b\u5f0f\u548c\u6559\u5b78\u975e\u5e38\u591a\uff0c\u4eca\u5929\u7d66\u7db2\u53cb\u4ecb\u7d39\u5e7e\u500bwordpress\u975e\u5e38\u5be6\u7528\u7684\u6280\u5de7\u3002<\/span><\/span><\/strong><span style=\"font-size: small\"><\/p>\n<p><span style=\"font-size: small; color: #008000\"><strong>(1)\u88fd\u4f5c\u81ea\u5df1\u7684\u500b\u6027favicon.ico<\/strong><\/span><\/p>\n<p>\u9996\u884cICO\u7684\u8a2d\u8a08\u53ef\u4ee5\u7531photoshop\u4f86\u5b8c\u6210\uff0c\u5927\u5c0f16*16\u50cf\u7d20\uff0c\u5728\u5b8c\u6210\u5716\u7247\u8a2d\u8a08\u5f8c\u5982\u679c\u4f60\u7684PS\u4e0d\u80fd\u76f4\u63a5\u8f38\u51faICO\u683c\u5f0f\u53ef\u4ee5\u5148\u5132\u5b58\u6210JPG\uff0c\u751f\u6210\u7684\u5716\u7247\u53ef\u4ee5\u4f7f\u7528\u7dda\u4e0aICO\u751f\u6210\u5de5\u5177\u4f86\u751f\u6210\u3002<\/p>\n<p>\u5c07\u88fd\u4f5c\u597d\u7684ico\u5716\u793a\u4e0a\u50b3\u5230\u7db2\u7ad9\u7684\u6839\u76ee\u9304\u4e0b\uff0c\uff0cWP\u7684\u5927\u591a\u6578\u7bc4\u672c\u90fd\u53ef\u4ee5\u76f4\u63a5\u547c\u53eb\uff0c\u5c31\u662f\u4e0d\u7528\u4fee\u6539\u4efb\u4f55\u4ee3\u78bc\u5c31\u53ef\u4ee5\u986f\u793a\u3002<br \/>\u9664\u4e86wordpress\u5176\u5b83\u7684\u4e3b\u6d41\u90e8\u843d\u683c\u7a0b\u5f0f\u5927\u90fd\u53ef\u4ee5\u3002<br \/>\u5982\u679c\u4f60\u7684\u90e8\u843d\u683c\u7279\u6b8a\u8acb\u5982\u4e0b\u64cd\u4f5c\uff0c\u4fee\u6539WordPress\u7684header.php\u6a94\u6848\uff0c\u5728&lt;head&gt;&lt;\/head&gt;\u6a19\u7c64\u4e4b\u9593\u63d2\u5165\uff1a<\/p>\n<p>&lt;link href=&quot;&rdquo;favicon.ico&rdquo;&quot; rel=&quot;&rdquo;shortcut&quot; \/&gt;<\/p>\n<p>\u7531\u65bc\u4f3a\u670d\u5668\u53ca\u5feb\u53d6\u7684\u554f\u984c\uff0c\u53ef\u80fd\u9700\u8981\u7b49\u5f85\u4e00\u6bb5\u6642\u9593\u624d\u80fd\u986f\u793a\u3002<br \/><span style=\"font-size: small; color: #800000\"><strong><br \/>(2)\u96e2\u7dda\u767c\u4f48\u5229\u5668&ndash;Windows Live Writer <\/strong><\/span><\/p>\n<p>Windows Live Writer\u662f\u5fae\u8edf\u51fa\u54c1\u7684\u90e8\u843d\u683c\u96e2\u7dda\u767c\u4f48\u5de5\u5177\uff0c\u9664\u4e86wordpress\u5916\u9084\u652f\u63f4blogger \u548c TypePad\u3002<\/p>\n<p>\u4f7f\u7528Windows Live Writer\u5f88\u5bb9\u6613\u5be6\u73fe\u6587\u7ae0\u7de8\u8f2f\uff0c\u767c\u4f48\uff0c\u4e0a\u50b3\u5716\u7247\uff0c\u5206\u985e\uff0c\u548c\u9032\u5165wordpress\u5f8c\u53f0\u767c\u4f48\u611f\u89ba\u4e0d\u51fa\u591a\u5927\u5340\u5225\uff0c\u9019\u4e5f\u662f\u6211\u559c\u6b61\u9019\u500b\u5de5\u5177\u7684\u4e3b\u8981\u539f\u56e0\u3002<br \/>\u96e2\u7dda\u767c\u4f48\u6587\u7ae0\uff0c\u4f60\u7684wordpress\u7cfb\u7d71\u5fc5\u9808\u958b\u555f\u4e86\u76f8\u61c9\u7684\u652f\u63f4\u5354\u5b9a\uff1a \u8a2d\u5b9a-\u64b0\u5beb-\u9060\u7aef\u767c\u4f48\u6b04\uff0c\u555f\u7528\u300cXML-RPC \u767c\u4f48\u5354\u5b9a\u300d\u3002<\/p>\n<p><span style=\"font-size: small; color: #800080\"><strong>(3)\u7121\u5916\u639b\u7a0b\u5f0fwordpress\u6587\u7ae0\u7f6e\u9802<\/strong><\/span><\/p>\n<p>\u901a\u904ewordpress\u5f8c\u53f0\u7684\u5feb\u901f\u7de8\u8f2f\u53ef\u4ee5\u5f88\u5bb9\u6613\u8a2d\u5b9a\u6587\u7ae0\u7f6e\u9802\u529f\u80fd\u3002<br \/>WordPress\u6587\u7ae0\u7f6e\u9802\u7684\u65b9\u6cd5<br \/>WordPress\u6587\u7ae0\u7f6e\u9802\u7684\u5c08\u6848\u5206\u70ba\u7121\u5916\u639b\u7a0b\u5f0f\u5c08\u6848\u548c\u4f7f\u7528\u5916\u639b\u7a0b\u5f0f\u5169\u7a2e\u65b9\u6cd5\u3002<br \/>\u7121\u5916\u639b\u7a0b\u5f0fWordPress\u6587\u7ae0\u7f6e\u9802\u65b9\u6cd5<\/p>\n<p>\u4e0d\u4f7f\u7528\u5916\u639b\u7a0b\u5f0f\u8b93Wordpress\u6587\u7ae0\u7f6e\u9802\u975e\u5e38\u7c21\u55ae\uff0c\u53ea\u662f\u9019\u500b\u529f\u80fd\u88ab\u5f88\u591a\u7db2\u53cb\u5ffd\u7565\u4e86\uff0c\u6587\u7ae0\u767c\u8868\u5f8c\u53ef\u4ee5\u5728\u5feb\u901f\u7de8\u8f2f\u6a21\u5f0f\u53ef\u4ee5\u5c07\u6587\u7ae0\u76f4\u63a5\u8a2d\u5b9a\u70ba\u7f6e\u9802\uff0c\u5982\u4e0b\uff1a<br \/>\u5728\u5feb\u901f\u7de8\u8f2f\u6a21\u5f0f\u9664\u4e86\u8a2d\u5b9a\u7f6e\u9802\uff0c\u9084\u53ef\u4ee5\u70ba\u6587\u7ae0\u52a0\u5bc6\u78bc\uff0c\u76f8\u4fe1\u9019\u5169\u500b\u529f\u80fd\u6709\u4e0d\u5c11\u7db2\u53cb\u90fd\u5ffd\u7565\u4e86\u3002<\/p>\n<p>\u4ec0\u9ebc\uff1f\u627e\u4e0d\u5230\u5feb\u901f\u7de8\u8f2f\uff1f<br \/>1\u3001\u5beb\u597d\u6587\u7ae0\u4e26\u767c\u4f48<br \/>&nbsp;2\u3001\u9ede\u64ca\u90e8\u843d\u683c\u5f8c\u53f0\u6587\u7ae0\u9078\u55ae\u4e0b\u7684\u300c\u7de8\u8f2f\u300d\u9078\u9805\uff0c\u9032\u5165\u6587\u7ae0\u6e05\u55ae <br \/>3\u3001\u628a\u6ed1\u9f20\u79fb\u5230\u9700\u8981\u7f6e\u9802\u7684\u6587\u7ae0\u4e0a\uff0c\u5728\u6587\u7ae0\u6a19\u984c\u4e0b\u5c31\u6703\u986f\u793a\u51fa\u300c\u7de8\u8f2f\u300d\u3001\u300c\u5feb\u901f\u7de8\u8f2f\u300d\u3001\u300c\u522a\u9664\u300d\u3001\u300c\u6aa2\u8996\u300d\u56db\u500b\u9078\u9805\uff0c\u9ede\u64ca\u300c\u5feb\u901f\u7de8\u8f2f\u300d\uff0c\u5c31\u6703\u770b\u5230\u3002<\/p>\n<p>\u5c0f\u6280\u5de7\uff1aWordpress\u6587\u7ae0\u6a19\u984c\u80fd\u8b58\u5225Html\u4ee3\u78bc\uff0c\u7db2\u53cb\u53ef\u4ee5\u70ba\u7f6e\u9802\u7684\u6587\u7ae0\u6539\u4e0b\u6a19\u984c\u5f69\u8272\uff0c\u4ee3\u78bc\u793a\u4f8b:<br \/>&lt;span style=&quot;color: #43bc65;&quot;&gt;[\u7f6e\u9802]WordPress\u6587\u7ae0\u7f6e\u9802\u7684\u65b9\u6cd5&lt;\/span&gt;<\/p>\n<p>WordPress\u7684\u6587\u7ae0\u7f6e\u9802\u5916\u639b\u7a0b\u5f0f\u6709\u4e0d\u5c11\uff0c\u63a8\u85a6Classic Posts\u8207sticky\u3002<\/p>\n<p>\u8207\u4e0a\u9762\u7684\u65b9\u6cd5\u76f8\u6bd4\uff0c\u4f7f\u7528\u5916\u639b\u7a0b\u5f0f\u986f\u7684\u6709\u4e9b\u591a\u9918\uff0c\u4e0d\u904e\u5916\u639b\u7a0b\u5f0f\u7684\u529f\u80fd\u6703\u591a\u4e00\u4e9b\uff0c\u90fd\u80fd\u5f88\u65b9\u4fbf\u7684\u7ba1\u7406\u7f6e\u9802\u6587\u7ae0\uff0c\u6bd4\u5982\u53ef\u4ee5\u8a2d\u5b9a\u986f\u793a\u9078\u53d6\u6587\u7ae0\u7684\u5168\u6587\u6216\u662f\u6458\u8981\uff0c\u4e26\u4e14\u6458\u8981\u6578\u5b57\u53ef\u8abf\uff0c\u8a2d\u5b9a\u7576\u5929\u6587\u7ae0\u7f6e\u9802\u4e4b\u985e\u3002<br \/>\u6709\u9019\u4e9b\u7279\u6b8a\u8981\u6c42\u7684\u7db2\u53cb\u53ef\u4ee5\u9078\u53d6\u5916\u639b\u7a0b\u5f0f\u6a21\u5f0f\u3002<\/p>\n<p>\u8a3b\uff1a\u9019\u5169\u500b\u5916\u639b\u7a0b\u5f0f\u5b89\u88dd\u7684\u6642\u5019\u90fd\u9700\u8981\u5728Wordpress\u7bc4\u672c\u4e2d\u63d2\u5165\u95dc\u806f\u4ee3\u78bc\u3002<\/p>\n<p><span style=\"font-size: small; color: #0000ff\"><strong>(4)\u7981\u7528WordPress\u81ea\u52d5\u5132\u5b58<\/strong><\/span><\/p>\n<p>\u9996\u5148\u4fee\u6539 wp-admin \u4e0b\u7684 post-new.php \u6a94\u6848\uff0c\u627e\u5230\uff1a<\/p>\n<p>&nbsp;&nbsp;&nbsp; wp_enqueue_script\uff08\u300eautosave\u300f\uff09\uff1b<\/p>\n<p>\u522a\u9664\u6216\u5728\u524d\u9762\u52a0\u4e0a\u300c\/\/\u300d\u8a3b\u91cb\u6389\u3002\u518d\u627e\u5230 post.php \u6a94\u6848\uff0c\u540c\u6a23\u64cd\u4f5c\u3002<br \/>\u9019\u6a23\u64cd\u4f5c\u4ee5\u5f8c WordPress \u52a0\u5165\u65b0\u6587\u7ae0\u548c\u7de8\u8f2f\u6587\u7ae0\u5c31\u4e0d\u6703\u81ea\u52d5\u5132\u5b58\u3002<br \/>\u5c4f\u853d\u6389\u65e5\u8a8c\u7684\u8ffd\u8e64\u4fee\u8a02\u529f\u80fd\uff1a<br \/>\u6839\u76ee\u9304\u4e0b\u7684 wp-config.php \u6a94\u6848\uff0c\u5728\u88e1\u9762\u52a0\u5165\uff1a<\/p>\n<p>&nbsp;&nbsp;&nbsp; define\uff08\u300eWP_POST_REVISIONS\u300f, false\uff09\uff1b<\/p>\n<p><span style=\"font-size: small; color: #ff00ff\"><strong>(5)\u6587\u7ae0\u6a19\u984c\u6539\u8b8a\u5f69\u8272\u548c\u5b57\u578b<\/strong><\/span><\/p>\n<p>\u9019\u500b\u5728\u4ee5\u524d\u7684\u6587\u7ae0\u4e2d\u4e5f\u63d0\u5230\u904e\uff0cordpress\u6587\u7ae0\u6a19\u984c\u80fd\u8b58\u5225Html\u4ee3\u78bc\uff0c\u7db2\u53cb\u53ef\u4ee5\u70ba\u6587\u7ae0\u4fee\u6539\u6a19\u984c\u5f69\u8272\uff0c\u5b57\u578b\u7b49\u3002\u793a\u4f8b\uff1a<\/p>\n<p>&nbsp;&nbsp;&nbsp; &lt;span style=&quot;color: #43bc65;&quot;&gt;[\u7f6e\u9802]WordPress\u6587\u7ae0\u7f6e\u9802\u7684\u65b9\u6cd5&lt;\/span&gt;<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"post-excerpt\"><p>&nbsp;&nbsp; wordpress\u505a\u70ba\u6700\u6d41\u884c\u7684PHP\u90e8\u843d\u683c\u7a0b\u5f0f\u7db2\u4e0a\u95dc\u806f\u5916\u639b\u7a0b\u5f0f\u548c\u6559\u5b78\u975e\u5e38\u591a\uff0c\u4eca\u5929\u7d66\u7db2<\/p>\n<\/div>","protected":false},"author":1,"featured_media":513,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[91],"class_list":["post-9040","post","type-post","status-publish","format-standard","has-post-thumbnail","category-3","tag-91"],"_links":{"self":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts\/9040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/comments?post=9040"}],"version-history":[{"count":0,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts\/9040\/revisions"}],"wp:attachment":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/media?parent=9040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/categories?post=9040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/tags?post=9040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}