{"id":1190,"date":"2010-11-29T05:55:48","date_gmt":"2010-11-29T05:55:48","guid":{"rendered":"http:\/\/chan.nds.hk\/blog\/?p=1190"},"modified":"2010-11-29T05:55:48","modified_gmt":"2010-11-29T05:55:48","slug":"%e7%82%ba%e6%a8%a1%e6%9d%bf%e5%8a%a0%e5%85%a53-0%e7%9a%84%e8%87%aa%e8%a8%82%e9%81%b8%e5%96%ae%e5%8a%9f%e8%83%bd","status":"publish","type":"post","link":"https:\/\/chan.nds.hk\/blog\/?p=1190","title":{"rendered":"\u70ba\u6a21\u677f\u52a0\u51653.0\u7684\u81ea\u8a02\u9078\u55ae\u529f\u80fd"},"content":{"rendered":"<p><span style=\"font-size:14px;\">wordpress 3.0\u63a8\u51fa\u4e86\u65b0\u7684\u81ea\u8a02\u9078\u55ae\u529f\u80fd\uff0c\u76f8\u7576\u65b9\u4fbf\uff0c\u4f46\u5f88\u591a\u6a21\u677f\u90fd\u4e0d\u652f\u6301\uff0c\u5728\u7db2\u4e0a\u641c\u7d22\u4e86\u4e00\u4e0b\uff0c\u67e5\u627e\u5230\u4ee5\u4e0b\u65b9\u6cd5\u3002<\/span><\/p>\n<p><span style=\"font-size:14px;\"><br \/>\n\t<\/span><\/p>\n<p><span style=\"font-size:14px;\">\u9996\u5148\u958b\u555f\u4e3b\u984c\u76ee\u9304\u4e0b\u7684functions.php<\/span><\/p>\n<p><span style=\"font-size:14px;\">\u5728\u88e1\u9762\u6700\u5f8c\u4e00\u884c\u7684?&gt;\u4e4b\u524d\u4e00\u884c\u52a0\u5165\u4ee5\u4e0b\u7a0b\u5f0f\u78bc\uff1a<\/span><\/p>\n<p><span style=\"font-size:14px;\">\/\/ WordPress 3.0 Menus Support<\/span><\/p>\n<p><span style=\"font-size:14px;\">register_nav_menus( array(<\/span><\/p>\n<p><span style=\"font-size:14px;\">&#39;primary&#39; =&gt; __( &#39;Primary Navigation&#39;),<\/span><\/p>\n<p><span style=\"font-size:14px;\">) );<\/span><\/p>\n<p><span style=\"font-size:14px;\"><!--more--><br \/>\n\t<\/span><\/p>\n<p><span style=\"font-size:14px;\">\u7136\u5f8c\u958b\u555fheader.php<\/span><\/p>\n<p><span style=\"font-size:14px;\">\u7531\u65bc\u6bcf\u500b\u4e3b\u984c\u5c0d\u65bc\u5c0e\u822a\u5217\u7684\u5beb\u6cd5\u4e0d\u76e1\u76f8\u540c\uff0c\u6240\u4ee5\u5efa\u8b70\u6a21\u7cca\u5c0b\u627e\uff0c\u4e3b\u8981\u95dc\u9375\u5b57\u662fwp_list_pages\u3002<\/span><\/p>\n<p><span style=\"font-size:14px;\">\u4f8b\u5982\u627e\u5230\u662f\u50cf\u9019\u6a23\uff1a<\/span><\/p>\n<p><span style=\"font-size:14px;\">&lt;ul id=&quot;page-bar&quot; class=&quot;left clearfloat&quot;&gt;<\/span><\/p>\n<p><span style=\"font-size:14px;\">&lt;li&gt;&lt;a href=&quot;&lt;?php&amp;phpMyAdmin=93d1103296b5108d2a2431f18e2f0775 echo get_option(&#39;home&#39;); ?&gt;\/&quot;&gt;\u8fd4\u56de\u9996\u9801&lt;\/a&gt;&lt;\/li&gt;<\/span><\/p>\n<p><span style=\"font-size:14px;\">&lt;?php wp_list_pages(&#39;sort_column=menu_order&amp;title_li=&#39;); ?&gt;<\/span><\/p>\n<p><span style=\"font-size:14px;\">&lt;\/ul&gt;<\/span><\/p>\n<p><span style=\"font-size:14px;\"><br \/>\n\t<\/span><\/p>\n<p><span style=\"font-size:14px;\">\u66ff\u63db\u70ba\u5982\u4e0b\u7a0b\u5f0f\u78bc\uff1a<\/span><\/p>\n<p><span style=\"font-size:14px;\">&lt;?php wp_nav_menu( array(&#39;menu_id&#39; =&gt; &#39;page-bar&#39;, &#39;menu_class&#39; =&gt; &#39;left clearfloat&#39;, &#39;theme_location&#39; =&gt; &#39;primary&#39;) ); ?&gt;<\/span><\/p>\n<p><span style=\"font-size:14px;\"><br \/>\n\t<\/span><\/p>\n<p><span style=\"font-size:14px;\">\u66ff\u63db\u524d\u5148\u6ce8\u610f\u770bwp_nav_menu\u9019\u4e00\u884c\uff0cmenu_id \u7684\u6578\u503c\u8ddf\u539f\u672c\u7684 ul \u6a19\u7c64\u7684 id \u6578\u503c\u662f\u4e00\u6a23\u7684\uff0cmenu_class\u5247\u662f\u8981\u8ddful \u6a19\u7c64\u7684 class \u6578\u503c\u4e00\u6a23\uff0c\u5982\u679c\u4f60\u7684\u662f ul \u6a19\u7c64\u6709\u5176\u4e2d\u4e00\u9805\u6c92\u8a2d\u5b9a\u7684\u8a71\u53ef\u4ee5\u76f4\u63a5\u62ff\u6389\u6c92\u6709\u8a2d\u5b9a\u7684\u90e8\u4efd\u3002<\/span><\/p>\n<p><span style=\"font-size:14px;\"><br \/>\n\t<\/span><\/p>\n<p><span style=\"font-size:14px;\">\u5982\u679c\u89ba\u5f97\u6539\u78bc\u5f88\u9ebb\u7169\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u63d2\u4ef6<\/span><\/p>\n<p><span style=\"font-size:14px;\">PixoPoint Menu Plugin\uff5c\u81ea\u5b9a\u7fa9\u5c0e\u822a\u9078\u55ae<\/span><\/p>\n<p><span style=\"font-size:14px;\">http:\/\/wordpress.org\/extend\/plugins\/pixopoint-menu\/<\/span><\/p>\n<p><span style=\"font-size:14px;\">\u53ef\u4ee5\u70ba\u4f60\u8f15\u9b06\u89e3\u6c7a\u81ea\u8a02\u9078\u55ae\u554f\u984c<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<a href=\"https:\/\/chan.nds.hk\/blog\/?p=1190\"><img width=\"150\" height=\"150\" src=\"https:\/\/chan.nds.hk\/blog\/wp-content\/plugins\/thumbnail-for-excerpts\/tfe_no_thumb.png\" class=\"alignleft wp-post-image tfe\" alt=\"\" title=\"\" \/><\/a><p>wordpress 3.0\u63a8\u51fa\u4e86\u65b0\u7684\u81ea\u8a02\u9078\u55ae\u529f\u80fd\uff0c\u76f8\u7576\u65b9\u4fbf\uff0c\u4f46\u5f88\u591a\u6a21\u677f\u90fd\u4e0d\u652f\u6301\uff0c\u5728\u7db2\u4e0a\u641c\u7d22\u4e86\u4e00\u4e0b\uff0c\u67e5\u627e\u5230\u4ee5\u4e0b\u65b9\u6cd5\u3002 \u9996\u5148\u958b\u555f\u4e3b\u984c\u76ee\u9304\u4e0b\u7684functions.php \u5728\u88e1\u9762\u6700\u5f8c\u4e00\u884c\u7684?&gt;\u4e4b\u524d\u4e00\u884c\u52a0\u5165\u4ee5\u4e0b\u7a0b\u5f0f\u78bc\uff1a \/\/ WordPress 3.0 Menus Support register_nav_menus( array( &#39;primary&#39; =&gt; __( &#39;Primary Navigation&#39;), ) );<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[111],"tags":[1561],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1190"}],"collection":[{"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1190"}],"version-history":[{"count":0,"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1190\/revisions"}],"wp:attachment":[{"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chan.nds.hk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}