{"id":819,"date":"2010-06-18T20:07:38","date_gmt":"2010-06-18T12:07:38","guid":{"rendered":"http:\/\/ygs.im\/?p=819"},"modified":"2010-06-18T20:07:38","modified_gmt":"2010-06-18T12:07:38","slug":"wp%e6%a8%a1%e6%9d%bf%e5%b8%b8%e7%94%a8%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"https:\/\/ygs.im\/?p=819","title":{"rendered":"WordPress \u6a21\u677f\u5e38\u7528\u51fd\u6570"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">WordPress \u57fa\u672c\u6a21\u677f\u6587\u4ef6<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u5957\u5b8c\u6574\u7684 WordPress \u6a21\u677f\u5e94\u81f3\u5c11\u5177\u6709\u5982\u4e0b\u6587\u4ef6\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-plain is-layout-flow wp-block-quote-is-layout-flow is-style-plain--1\">\n<p class=\"wp-block-paragraph\">style.css : CSS(\u6837\u5f0f\u8868)\u6587\u4ef6<br>index.php : \u4e3b\u9875\u6a21\u677f<br>archive.php : Archive\/Category\u6a21\u677f<br>404.php : Not Found \u9519\u8bef\u9875\u6a21\u677f<br>comments.php : \u7559\u8a00\/\u56de\u590d\u6a21\u677f<br>footer.php : Footer\u6a21\u677f<br>header.php : Header\u6a21\u677f<br>sidebar.php : \u4fa7\u680f\u6a21\u677f<br>page.php : \u5185\u5bb9\u9875(Page)\u6a21\u677f<br>single.php : \u5185\u5bb9\u9875(Post)\u6a21\u677f<br>searchform.php : \u641c\u7d22\u8868\u5355\u6a21\u677f<br>search.php : \u641c\u7d22\u7ed3\u679c\u6a21\u677f<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u7136\uff0c\u5177\u4f53\u5230\u7279\u5b9a\u7684\u67d0\u6b3e\u6a21\u677f\uff0c\u53ef\u80fd\u4e0d\u6b62\u8fd9\u4e9b\u6587\u4ef6\uff0c\u4f46\u4e00\u822c\u800c\u8a00\uff0c\u8fd9\u4e9b\u6587\u4ef6\u662f\u6bcf\u5957\u6a21\u677f\u6240\u5fc5\u5907\u7684\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u57fa\u672c\u6761\u4ef6\u5224\u65adTag<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-plain is-layout-flow wp-block-quote-is-layout-flow is-style-plain--2\">\n<p class=\"wp-block-paragraph\">is_home() : \u662f\u5426\u4e3a\u4e3b\u9875<br>is_single() : \u662f\u5426\u4e3a\u5185\u5bb9\u9875(Post)<br>is_page() : \u662f\u5426\u4e3a\u5185\u5bb9\u9875(Page)<br>is_category() : \u662f\u5426\u4e3aCategory\/Archive\u9875<br>is_tag() : \u662f\u5426\u4e3aTag\u5b58\u6863\u9875<br>is_date() : \u662f\u5426\u4e3a\u6307\u5b9a\u65e5\u671f\u5b58\u6863\u9875<br>is_year() : \u662f\u5426\u4e3a\u6307\u5b9a\u5e74\u4efd\u5b58\u6863\u9875<br>is_month() : \u662f\u5426\u4e3a\u6307\u5b9a\u6708\u4efd\u5b58\u6863\u9875<br>is_day() : \u662f\u5426\u4e3a\u6307\u5b9a\u65e5\u5b58\u6863\u9875<br>is_time() : \u662f\u5426\u4e3a\u6307\u5b9a\u65f6\u95f4\u5b58\u6863\u9875<br>is_archive() : \u662f\u5426\u4e3a\u5b58\u6863\u9875<br>is_search() : \u662f\u5426\u4e3a\u641c\u7d22\u7ed3\u679c\u9875<br>is_404() : \u662f\u5426\u4e3a \u201cHTTP 404: Not Found\u201d \u9519\u8bef\u9875<br>is_paged() : \u4e3b\u9875\/Category\/Archive\u9875\u662f\u5426\u4ee5\u591a\u9875\u663e\u793a<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Header\u90e8\u5206\u5e38\u7528\u5230\u7684PHP\u51fd\u6570<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-plain is-layout-flow wp-block-quote-is-layout-flow is-style-plain--3\">\n<p class=\"wp-block-paragraph\">&lt; ?php bloginfo(\u2019name\u2019); ?&gt; : \u535a\u5ba2\u540d\u79f0(Title)<br>&lt;?php bloginfo(\u2019stylesheet_url\u2019); ?&gt; : CSS\u6587\u4ef6\u8def\u5f84<br>&lt;?php bloginfo(\u2019pingback_url\u2019); ?&gt; : PingBack Url<br>&lt;?php bloginfo(\u2019template_url\u2019); ?&gt; : \u6a21\u677f\u6587\u4ef6\u8def\u5f84<br>&lt;?php bloginfo(\u2019version\u2019); ?&gt; : WordPress\u7248\u672c<br>&lt;?php bloginfo(\u2019atom_url\u2019); ?&gt; : Atom Url<br>&lt;?php bloginfo(\u2019rss2_url\u2019); ?&gt; : RSS 2.o Url<br>&lt;?php bloginfo(\u2019url\u2019); ?&gt; : \u535a\u5ba2 Url<br>&lt;?php bloginfo(\u2019html_type\u2019); ?&gt; : \u535a\u5ba2\u7f51\u9875Html\u7c7b\u578b<br>&lt;?php bloginfo(\u2019charset\u2019); ?&gt; : \u535a\u5ba2\u7f51\u9875\u7f16\u7801<br>&lt;?php bloginfo(\u2019description\u2019); ?&gt; : \u535a\u5ba2\u63cf\u8ff0<br>&lt;?php wp_title(); ?&gt; : \u7279\u5b9a\u5185\u5bb9\u9875(Post\/Page)\u7684\u6807\u9898<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u6a21\u677f\u5e38\u7528\u7684PHP\u51fd\u6570\u53ca\u547d\u4ee4<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-plain is-layout-flow wp-block-quote-is-layout-flow is-style-plain--4\">\n<p class=\"wp-block-paragraph\">&lt;?php get_header(); ?&gt; : \u8c03\u7528Header\u6a21\u677f<br>&lt;?php get_sidebar(); ?&gt; : \u8c03\u7528Sidebar\u6a21\u677f<br>&lt;?php get_footer(); ?&gt; : \u8c03\u7528Footer\u6a21\u677f<br>&lt;?php the_content(); ?&gt; : \u663e\u793a\u5185\u5bb9(Post\/Page)<br>&lt;?php if(have_posts()) : ?&gt; : \u68c0\u67e5\u662f\u5426\u5b58\u5728Post\/Page<br>&lt;?php while(have_posts()) : the_post(); ?&gt; : \u5982\u679c\u5b58\u5728Post\/Page\u5219\u4e88\u4ee5\u663e\u793a<br>&lt;?php endwhile; ?&gt; : While \u7ed3\u675f<br>&lt;?php endif; ?&gt; : If \u7ed3\u675f<br>&lt;?php the_time(\u2019\u5b57\u7b26\u4e32\u2019) ?&gt; : \u663e\u793a\u65f6\u95f4\uff0c\u65f6\u95f4\u683c\u5f0f\u7531\u201c\u5b57\u7b26\u4e32\u201d\u53c2\u6570\u51b3\u5b9a\uff0c\u5177\u4f53\u53c2\u8003PHP\u624b\u518c<br>&lt;?php comments_popup_link(); ?&gt; : \u6b63\u6587\u4e2d\u7684\u7559\u8a00\u94fe\u63a5\u3002\u5982\u679c\u4f7f\u7528 comments_popup_script() \uff0c\u5219\u7559\u8a00\u4f1a\u5728\u65b0\u7a97\u53e3\u4e2d\u6253\u5f00\uff0c\u53cd\u4e4b\uff0c\u5219\u5728\u5f53\u524d\u7a97\u53e3\u6253\u5f00<br>&lt;?php the_title(); ?&gt; : \u5185\u5bb9\u9875(Post\/Page)\u6807\u9898<br>&lt;?php the_permalink() ?&gt; : \u5185\u5bb9\u9875(Post\/Page) Url<br>&lt;?php the_category(\u2019, \u2018) ?&gt; : \u7279\u5b9a\u5185\u5bb9\u9875(Post\/Page)\u6240\u5c5eCategory<br>&lt;?php the_author(); ?&gt; : \u4f5c\u8005<br>&lt;?php the_ID(); ?&gt; : \u7279\u5b9a\u5185\u5bb9\u9875(Post\/Page) ID<br>&lt;?php edit_post_link(); ?&gt; : \u5982\u679c\u7528\u6237\u5df2\u767b\u5f55\u5e76\u5177\u6709\u6743\u9650\uff0c\u663e\u793a\u7f16\u8f91\u94fe\u63a5<br>&lt;?php get_links_list(); ?&gt; : \u663e\u793aBlogroll\u4e2d\u7684\u94fe\u63a5<br>&lt;?php comments_template(); ?&gt; : \u8c03\u7528\u7559\u8a00\/\u56de\u590d\u6a21\u677f<br>&lt;?php wp_list_pages(); ?&gt; : \u663e\u793aPage\u5217\u8868<br>&lt;?php wp_list_categories(); ?&gt; : \u663e\u793aCategories\u5217\u8868<br>&lt;?php next_post_link(\u2019 %link \u2018); ?&gt; : \u4e0b\u4e00\u7bc7\u6587\u7ae0\u94fe\u63a5<br>&lt;?php previous_post_link(\u2019%link\u2019); ?&gt; : \u4e0a\u4e00\u7bc7\u6587\u7ae0\u94fe\u63a5<br>&lt;?php get_calendar(); ?&gt; : \u65e5\u5386<br>&lt;?php wp_get_archives() ?&gt; : \u663e\u793a\u5185\u5bb9\u5b58\u6863<br>&lt;?php posts_nav_link(); ?&gt; : \u5bfc\u822a\uff0c\u663e\u793a\u4e0a\u4e00\u7bc7\/\u4e0b\u4e00\u7bc7\u6587\u7ae0\u94fe\u63a5<br>&lt;?php include(TEMPLATEPATH . \u2018\/\u6587\u4ef6\u540d\u2019); ?&gt; : \u5d4c\u5165\u5176\u4ed6\u6587\u4ef6\uff0c\u53ef\u4e3a\u5b9a\u5236\u7684\u6a21\u677f\u6216\u5176\u4ed6\u7c7b\u578b\u6587\u4ef6<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0e\u6a21\u677f\u76f8\u5173\u7684\u5176\u4ed6\u51fd\u6570<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-plain is-layout-flow wp-block-quote-is-layout-flow is-style-plain--5\">\n<p class=\"wp-block-paragraph\">&lt;?php _e(\u2019Message\u2019); ?&gt; : \u8f93\u51fa\u76f8\u5e94\u4fe1\u606f<br>&lt;?php wp_register(); ?&gt; : \u663e\u793a\u6ce8\u518c\u94fe\u63a5<br>&lt;?php wp_loginout(); ?&gt; : \u663e\u793a\u767b\u5f55\/\u6ce8\u9500\u94fe\u63a5<br>&lt;!\u2013next page\u2013&gt; : \u5c06\u5f53\u524d\u5185\u5bb9\u5206\u9875<br>&lt;!\u2013more\u2013&gt; : \u5c06\u5f53\u524d\u5185\u5bb9\u622a\u65ad\uff0c\u4ee5\u4e0d\u5728\u4e3b\u9875\/\u76ee\u5f55\u9875\u663e\u793a\u5168\u90e8\u5185\u5bb9<br>&lt;?php timer_stop(1); ?&gt; : \u7f51\u9875\u52a0\u8f7d\u65f6\u95f4(\u79d2)<br>&lt;?php echo get_num_queries(); ?&gt; : \u7f51\u9875\u52a0\u8f7d\u67e5\u8be2\u91cf<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>WordPress \u57fa\u672c\u6a21\u677f\u6587\u4ef6 \u4e00\u5957\u5b8c\u6574\u7684 WordPress \u6a21\u677f\u5e94\u81f3\u5c11\u5177\u6709\u5982\u4e0b\u6587\u4ef6\uff1a style.css [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-819","post","type-post","status-publish","format-standard","hentry","category-note"],"_links":{"self":[{"href":"https:\/\/ygs.im\/index.php?rest_route=\/wp\/v2\/posts\/819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ygs.im\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ygs.im\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ygs.im\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ygs.im\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=819"}],"version-history":[{"count":0,"href":"https:\/\/ygs.im\/index.php?rest_route=\/wp\/v2\/posts\/819\/revisions"}],"wp:attachment":[{"href":"https:\/\/ygs.im\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ygs.im\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ygs.im\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}