{"id":15876,"date":"2025-12-21T08:57:24","date_gmt":"2025-12-21T00:57:24","guid":{"rendered":"https:\/\/www.aiersheng.cc\/?p=15876"},"modified":"2025-12-21T08:58:09","modified_gmt":"2025-12-21T00:58:09","slug":"22","status":"publish","type":"post","link":"https:\/\/www.aiersheng.cc\/?p=15876","title":{"rendered":"WordPress\u4e3b\u9898\u5f00\u53d1\u96f6\u57fa\u7840\u6559\u7a0b\uff1a\u6838\u5fc3\u6587\u4ef6\u4e0e\u6a21\u677f\u4ee3\u7801\u5168\u89e3\u6790"},"content":{"rendered":"<p># WordPress\u4e3b\u9898\u5f00\u53d1\u96f6\u57fa\u7840\u6559\u7a0b\uff1a\u6838\u5fc3\u6587\u4ef6\u4e0e\u6a21\u677f\u4ee3\u7801\u5168\u89e3\u6790<br \/>\nWordPress\u4f5c\u4e3a\u5168\u7403\u6700\u6d41\u884c\u7684CMS\uff08\u5185\u5bb9\u7ba1\u7406\u7cfb\u7edf\uff09\uff0c\u5176\u5f3a\u5927\u7684\u53ef\u5b9a\u5236\u6027\u6838\u5fc3\u5728\u4e8e**\u4e3b\u9898\uff08Template\uff09** \u5f00\u53d1\u3002\u4e3b\u9898\u901a\u8fc7\u4e00\u7cfb\u5217\u6807\u51c6\u5316\u7684PHP\u6587\u4ef6\u3001CSS\u6837\u5f0f\u8868\u548c\u6a21\u677f\u6807\u7b7e\uff0c\u5b9e\u73b0\u7f51\u7ad9\u7684\u754c\u9762\u6e32\u67d3\u4e0e\u529f\u80fd\u903b\u8f91\u3002\u672c\u6587\u5c06\u4ece**\u6838\u5fc3\u6587\u4ef6\u7ed3\u6784**\u3001**\u6a21\u677f\u6807\u7b7e\u5206\u7c7b**\u3001**\u5b9e\u6218\u5f00\u53d1\u793a\u4f8b**\u4e09\u4e2a\u7ef4\u5ea6\uff0c\u5168\u9762\u8bb2\u89e3WordPress\u4e3b\u9898\u5f00\u53d1\u7684\u57fa\u7840\u8981\u70b9\uff0c\u5e2e\u52a9\u65b0\u624b\u5feb\u901f\u5165\u95e8\u3002<\/p>\n<p>## \u4e00\u3001WordPress\u4e3b\u9898\u7684\u57fa\u7840\u8ba4\u77e5<br \/>\n### 1. \u4e3b\u9898\u7684\u5b58\u50a8\u4f4d\u7f6e<br \/>\nWordPress\u7684\u4e3b\u9898\u6587\u4ef6\u7edf\u4e00\u5b58\u653e\u5728\u5b89\u88c5\u76ee\u5f55\u7684`\/wp-content\/themes\/`\u6587\u4ef6\u5939\u4e0b\uff0c\u6bcf\u4e2a\u4e3b\u9898\u5bf9\u5e94\u4e00\u4e2a\u72ec\u7acb\u7684\u5b50\u6587\u4ef6\u5939\uff08\u4f8b\u5982`\/wp-content\/themes\/my-first-theme\/`\uff09\u3002<\/p>\n<p>### 2. \u4e3b\u9898\u7684\u6838\u5fc3\u89c4\u8303<br \/>\n&#8211; \u4e00\u4e2a\u5408\u6cd5\u7684WordPress\u4e3b\u9898**\u81f3\u5c11\u5305\u542b`style.css`\uff08\u6837\u5f0f\u8868\uff09\u548c`index.php`\uff08\u4e3b\u9875\u6a21\u677f\uff09** \u4e24\u4e2a\u6587\u4ef6\u3002<br \/>\n&#8211; \u4e3b\u9898\u6587\u4ef6\u9075\u5faa**\u6a21\u677f\u5c42\u6b21\uff08Template Hierarchy\uff09** \u89c4\u5219\uff0cWordPress\u4f1a\u6309\u4f18\u5148\u7ea7\u81ea\u52a8\u5339\u914d\u5bf9\u5e94\u7684\u6a21\u677f\u6587\u4ef6\u6e32\u67d3\u9875\u9762\uff08\u4f8b\u5982\u5355\u7bc7\u6587\u7ae0\u4f18\u5148\u4f7f\u7528`single.php`\uff0c\u800c\u975e`index.php`\uff09\u3002<\/p>\n<p>## \u4e8c\u3001WordPress\u4e3b\u9898\u6838\u5fc3\u6587\u4ef6\u8be6\u89e3<br \/>\n\u4e3b\u9898\u6587\u4ef6\u5206\u4e3a**\u57fa\u7840\u5fc5\u5907\u6587\u4ef6**\u548c**\u529f\u80fd\u6269\u5c55\u6587\u4ef6**\uff0c\u4e0d\u540c\u6587\u4ef6\u627f\u62c5\u4e0d\u540c\u7684\u9875\u9762\u6e32\u67d3\u804c\u8d23\uff0c\u4ee5\u4e0b\u662f\u5b8c\u6574\u7684\u6587\u4ef6\u8bf4\u660e\uff1a<\/p>\n<p>| \u6587\u4ef6\u540d\u79f0 | \u6838\u5fc3\u4f5c\u7528 | \u4f7f\u7528\u573a\u666f\u4e0e\u6ce8\u610f\u4e8b\u9879 |<br \/>\n|&#8212;&#8212;&#8212;-|&#8212;&#8212;&#8212;-|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;|<br \/>\n| `style.css` | \u4e3b\u9898\u6837\u5f0f\u8868\uff08\u6838\u5fc3\u5fc5\u5907\uff09 | \u4e0d\u4ec5\u5305\u542bCSS\u6837\u5f0f\uff0c**\u6587\u4ef6\u5934\u90e8\u7684\u6ce8\u91ca\u5757\u662f\u4e3b\u9898\u7684\u6807\u8bc6**\uff08\u5fc5\u987b\u5305\u542b\u4e3b\u9898\u540d\u79f0\u3001\u4f5c\u8005\u3001\u7248\u672c\u7b49\u4fe1\u606f\uff09\uff0cWordPress\u901a\u8fc7\u6b64\u6ce8\u91ca\u8bc6\u522b\u4e3b\u9898\u3002 |<br \/>\n| `index.php` | \u4e3b\u9875\u6a21\u677f\uff08\u6838\u5fc3\u5fc5\u5907\uff09 | \u4e3b\u9898\u7684\u201c\u515c\u5e95\u201d\u6587\u4ef6\uff1a\u5f53\u6ca1\u6709\u5339\u914d\u7684\u4e13\u7528\u6a21\u677f\uff08\u5982`single.php`\u3001`page.php`\uff09\u65f6\uff0cWordPress\u4f1a\u4f7f\u7528\u6b64\u6587\u4ef6\u6e32\u67d3\u6240\u6709\u9875\u9762\u3002 |<br \/>\n| `single.php` | \u5355\u7bc7\u6587\u7ae0\uff08\u65e5\u5fd7\uff09\u6a21\u677f | \u7528\u4e8e\u6e32\u67d3**\u5355\u7bc7\u535a\u5ba2\u6587\u7ae0**\u7684\u8be6\u60c5\u9875\uff0c\u662f\u5185\u5bb9\u5c55\u793a\u7684\u6838\u5fc3\u6587\u4ef6\u3002 |<br \/>\n| `page.php` | \u72ec\u7acb\u9875\u9762\u6a21\u677f | \u7528\u4e8e\u6e32\u67d3**\u9759\u6001\u9875\u9762**\uff08\u5982\u5173\u4e8e\u6211\u4eec\u3001\u8054\u7cfb\u6211\u4eec\uff09\uff0c\u4e0e\u535a\u5ba2\u6587\u7ae0\u533a\u5206\u5f00\u3002 |<br \/>\n| `archive.php` | \u5206\u7c7b\/\u6807\u7b7e\/\u65e5\u671f\u5b58\u6863\u6a21\u677f | \u6e32\u67d3\u5206\u7c7b\u9875\u3001\u6807\u7b7e\u9875\u3001\u65e5\u671f\u5f52\u6863\u9875\uff08\u59822025\u5e7412\u6708\u7684\u6587\u7ae0\u5217\u8868\uff09\uff1b\u53ef\u8fdb\u4e00\u6b65\u7ec6\u5206`category.php`\uff08\u4ec5\u5206\u7c7b\uff09\u3001`tag.php`\uff08\u4ec5\u6807\u7b7e\uff09\u3001`date.php`\uff08\u4ec5\u65e5\u671f\uff09\u3002 |<br \/>\n| `searchform.php` | \u641c\u7d22\u8868\u5355\u6a21\u677f | \u5c01\u88c5\u7f51\u7ad9\u7684\u641c\u7d22\u8868\u5355HTML\u7ed3\u6784\uff0c\u53ef\u901a\u8fc7`get_search_form()`\u51fd\u6570\u8c03\u7528\u3002 |<br \/>\n| `search.php` | \u641c\u7d22\u7ed3\u679c\u9875\u9762\u6a21\u677f | \u6e32\u67d3\u7528\u6237\u641c\u7d22\u540e\u7684\u7ed3\u679c\u5217\u8868\uff0c\u9700\u7ed3\u5408\u641c\u7d22\u76f8\u5173\u6a21\u677f\u6807\u7b7e\u4f7f\u7528\u3002 |<br \/>\n| `comments.php` | \u8bc4\u8bba\u533a\u57df\u6a21\u677f | \u5305\u542b**\u8bc4\u8bba\u5217\u8868**\u548c**\u8bc4\u8bba\u63d0\u4ea4\u6846**\uff0c\u901a\u8fc7`comments_template()`\u51fd\u6570\u5d4c\u5165\u5230\u6587\u7ae0\/\u9875\u9762\u4e2d\u3002 |<br \/>\n| `404.php` | 404\u9519\u8bef\u9875\u9762\u6a21\u677f | \u5f53\u7528\u6237\u8bbf\u95ee\u4e0d\u5b58\u5728\u7684URL\u65f6\uff0c\u663e\u793a\u81ea\u5b9a\u4e49\u7684404\u9519\u8bef\u9875\u9762\uff0c\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u3002 |<br \/>\n| `header.php` | \u7f51\u9875\u5934\u90e8\u6a21\u677f | \u5305\u542b&#8220;\u6807\u7b7e\u5185\u7684\u5185\u5bb9\u3001\u7f51\u7ad9\u5bfc\u822a\u3001logo\u7b49\u5168\u5c40\u5934\u90e8\u5143\u7d20\uff0c\u901a\u8fc7`get_header()`\u51fd\u6570\u8c03\u7528\u3002 || `sidebar.php` | \u4fa7\u8fb9\u680f\u6a21\u677f | \u7528\u4e8e\u6e32\u67d3\u7f51\u7ad9\u4fa7\u8fb9\u680f\uff08\u5982\u5206\u7c7b\u5217\u8868\u3001\u70ed\u95e8\u6587\u7ae0\u3001\u5e7f\u544a\uff09\uff0c\u901a\u8fc7`get_sidebar()`\u51fd\u6570\u8c03\u7528\u3002 || `footer.php` | \u7f51\u9875\u5e95\u90e8\u6a21\u677f | \u5305\u542b\u9875\u811a\u5bfc\u822a\u3001\u7248\u6743\u4fe1\u606f\u3001JS\u811a\u672c\u5f15\u5165\u7b49\u5168\u5c40\u5e95\u90e8\u5143\u7d20\uff0c\u901a\u8fc7`get_footer()`\u51fd\u6570\u8c03\u7528\u3002 || `functions.php` | \u4e3b\u9898\u529f\u80fd\u51fd\u6570\u6587\u4ef6\uff08\u91cd\u8981\u6269\u5c55\uff09 | \u867d\u975e\u5fc5\u5907\uff0c\u4f46\u51e0\u4e4e\u6240\u6709\u4e3b\u9898\u90fd\u4f1a\u5305\u542b\uff1a\u7528\u4e8e\u6ce8\u518c\u4fa7\u8fb9\u680f\u3001\u83dc\u5355\u3001\u81ea\u5b9a\u4e49\u529f\u80fd\u3001\u5f15\u5165\u811a\u672c\/\u6837\u5f0f\u7b49\uff0c\u662f\u4e3b\u9898\u7684\u201c\u529f\u80fd\u4e2d\u67a2\u201d\u3002 || `screenshot.png` | \u4e3b\u9898\u9884\u89c8\u56fe\uff08\u53ef\u9009\uff09 | \u5c3a\u5bf8\u5efa\u8bae\u4e3a`880\u00d7660px`\uff0c\u663e\u793a\u5728WordPress\u540e\u53f0\u7684\u4e3b\u9898\u5217\u8868\u4e2d\uff0c\u65b9\u4fbf\u8bc6\u522b\u3002 |<\/p>\n<p>### \u5173\u952e\u6587\u4ef6\u793a\u4f8b\uff1a`style.css`\u7684\u5934\u90e8\u6ce8\u91ca<br \/>\n`style.css`\u7684\u5934\u90e8\u5fc5\u987b\u5305\u542b**\u4e3b\u9898\u4fe1\u606f\u6ce8\u91ca\u5757**\uff0c\u5426\u5219WordPress\u65e0\u6cd5\u8bc6\u522b\u8be5\u4e3b\u9898\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a<br \/>\n&#8220;`css<br \/>\n\/*<br \/>\nTheme Name: My First Theme<br \/>\nTheme URI: https:\/\/example.com\/my-first-theme<br \/>\nAuthor: \u4f60\u7684\u540d\u5b57<br \/>\nAuthor URI: https:\/\/example.com<br \/>\nDescription: \u8fd9\u662f\u6211\u7684\u7b2c\u4e00\u4e2aWordPress\u81ea\u5b9a\u4e49\u4e3b\u9898\uff0c\u7528\u4e8e\u5b66\u4e60\u548c\u5b9e\u6218\u3002<br \/>\nVersion: 1.0<br \/>\nLicense: GNU General Public License v2 or later<br \/>\nLicense URI: https:\/\/www.gnu.org\/licenses\/gpl-2.0.html<br \/>\nText Domain: my-first-theme<br \/>\nTags: blog, responsive, custom-colors<br \/>\n*\/<\/p>\n<p>\/* \u4ee5\u4e0b\u662f\u4e3b\u9898\u7684CSS\u6837\u5f0f *\/<br \/>\nbody {<br \/>\nfont-family: &#8220;Microsoft YaHei&#8221;, sans-serif;<br \/>\nmargin: 0;<br \/>\npadding: 0;<br \/>\ncolor: #333;<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>## \u4e09\u3001WordPress\u6838\u5fc3\u6a21\u677f\u6807\u7b7e\uff08PHP\u51fd\u6570\uff09\u5168\u89e3\u6790<br \/>\n\u6a21\u677f\u6807\u7b7e\u662fWordPress\u9884\u5b9a\u4e49\u7684PHP\u51fd\u6570\uff0c\u7528\u4e8e**\u52a8\u6001\u83b7\u53d6\u548c\u8f93\u51fa\u7f51\u7ad9\u6570\u636e**\uff08\u5982\u6587\u7ae0\u6807\u9898\u3001\u5185\u5bb9\u3001\u5206\u7c7b\u7b49\uff09\uff0c\u65e0\u9700\u624b\u52a8\u7f16\u5199\u6570\u636e\u5e93\u67e5\u8be2\u8bed\u53e5\u3002\u4ee5\u4e0b\u6309\u529f\u80fd\u5206\u7c7b\u6574\u7406\u5e38\u7528\u6a21\u677f\u6807\u7b7e\uff0c\u5e76\u9644\u4f7f\u7528\u793a\u4f8b\u3002<\/p>\n<p>### 1. \u7ad9\u70b9\u4fe1\u606f\u76f8\u5173\u6807\u7b7e\uff08\u7528\u4e8e&#8220;\u548c\u5168\u5c40\u533a\u57df\uff09\u8fd9\u7c7b\u6807\u7b7e\u901a\u8fc7`bloginfo()`\u51fd\u6570\u83b7\u53d6\u7f51\u7ad9\u7684\u57fa\u7840\u914d\u7f6e\u4fe1\u606f\uff0c\u4e3b\u8981\u7528\u4e8e`header.php`\u7684&#8220;\u6807\u7b7e\u5185\u3002<\/p>\n<p>| \u6a21\u677f\u6807\u7b7e | \u529f\u80fd\u8bf4\u660e | \u4f7f\u7528\u793a\u4f8b |<br \/>\n|&#8212;&#8212;&#8212;-|&#8212;&#8212;&#8212;-|&#8212;&#8212;&#8212;-|<br \/>\n| `<!--?php bloginfo('name'); ?-->` | \u8f93\u51fa\u7f51\u7ad9\u540d\u79f0\uff08\u540e\u53f0\u8bbe\u7f6e\u2192\u5e38\u89c4\u2192\u7ad9\u70b9\u6807\u9898\uff09 | &#8220; |<br \/>\n| `<!--?php bloginfo('description'); ?-->` | \u8f93\u51fa\u7f51\u7ad9\u63cf\u8ff0\uff08\u540e\u53f0\u8bbe\u7f6e\u2192\u5e38\u89c4\u2192\u7ad9\u70b9\u526f\u6807\u9898\uff09 | &#8220; |<br \/>\n| `<!--?php bloginfo('stylesheet_url'); ?-->` | \u8f93\u51fa\u4e3b\u9898`style.css`\u7684\u7edd\u5bf9URL | &#8220; |<br \/>\n| `<!--?php bloginfo('template_url'); ?-->` | \u8f93\u51fa\u4e3b\u9898\u6587\u4ef6\u5939\u7684\u7edd\u5bf9URL\uff08\u7528\u4e8e\u5f15\u5165\u56fe\u7247\/JS\u7b49\u8d44\u6e90\uff09 | `<img decoding=\"async\" src=\"&lt;?php bloginfo('template_url'); ?&gt;\/images\/logo.png\" alt=\"logo\" \/>` |<br \/>\n| `<!--?php bloginfo('url'); ?-->` | \u8f93\u51fa\u7f51\u7ad9\u7684\u9996\u9875\u7edd\u5bf9URL\uff08\u7b49\u4ef7\u4e8e`home_url()`\uff09 | `<a href=\"&lt;?php bloginfo('url'); ?&gt;\">\u8fd4\u56de\u9996\u9875<\/a>` |<br \/>\n| `<!--?php bloginfo('charset'); ?-->` | \u8f93\u51fa\u7f51\u7ad9\u7684\u5b57\u7b26\u7f16\u7801\uff08\u901a\u5e38\u4e3aUTF-8\uff09 | &#8220; |<br \/>\n| `<!--?php bloginfo('version'); ?-->` | \u8f93\u51fa\u5f53\u524dWordPress\u7684\u7248\u672c\u53f7 | \uff08\u4e00\u822c\u7528\u4e8e\u8c03\u8bd5\uff0c\u4e0d\u5efa\u8bae\u524d\u53f0\u663e\u793a\uff09 |<br \/>\n| `<!--?php bloginfo('rss2_url'); ?-->` | \u8f93\u51fa\u7f51\u7ad9\u7684RSS2\u8ba2\u9605\u5730\u5740 | `<a href=\"&lt;?php bloginfo('rss2_url'); ?&gt;\">RSS\u8ba2\u9605<\/a>` |<\/p>\n<p>### 2. \u6587\u7ae0\/\u9875\u9762\u6570\u636e\u76f8\u5173\u6807\u7b7e\uff08\u7528\u4e8e\u5185\u5bb9\u5c55\u793a\u533a\u57df\uff09<br \/>\n\u8fd9\u7c7b\u6807\u7b7e\u7528\u4e8e\u83b7\u53d6\u5355\u7bc7\u6587\u7ae0\/\u9875\u9762\u7684\u5177\u4f53\u6570\u636e\uff0c\u4e3b\u8981\u5728`index.php`\u3001`single.php`\u3001`page.php`\u4e2d\u4f7f\u7528\u3002<\/p>\n<p>| \u6a21\u677f\u6807\u7b7e | \u529f\u80fd\u8bf4\u660e | \u4f7f\u7528\u793a\u4f8b |<br \/>\n|&#8212;&#8212;&#8212;-|&#8212;&#8212;&#8212;-|&#8212;&#8212;&#8212;-|<br \/>\n| `<!--?php the_title(); ?-->` | \u8f93\u51fa\u5f53\u524d\u6587\u7ae0\/\u9875\u9762\u7684\u6807\u9898 | `<\/p>\n<h1><\/h1>\n<p>` |<br \/>\n| `<!--?php the_permalink(); ?-->` | \u8f93\u51fa\u5f53\u524d\u6587\u7ae0\/\u9875\u9762\u7684\u6c38\u4e45\u94fe\u63a5\uff08URL\uff09 | `<!--?php the_title(); ?-->` |<br \/>\n| `<!--?php the_content(); ?-->` | \u8f93\u51fa\u5f53\u524d\u6587\u7ae0\/\u9875\u9762\u7684\u5b8c\u6574\u5185\u5bb9\uff08\u542bHTML\u683c\u5f0f\uff09 | `<\/p>\n<div class=\"post-content\"><\/div>\n<p>` |<br \/>\n| `<!--?php the_excerpt(); ?-->` | \u8f93\u51fa\u5f53\u524d\u6587\u7ae0\u7684\u6458\u8981\uff08\u624b\u52a8\u586b\u5199\u6216\u81ea\u52a8\u622a\u53d6\u524d55\u4e2a\u5b57\u7b26\uff09 | `<\/p>\n<p class=\"post-excerpt\">\n<p>` |<br \/>\n| `<!--?php the_time('Y-m-d H:i:s'); ?-->` | \u8f93\u51fa\u6587\u7ae0\u53d1\u5e03\u65f6\u95f4\uff08\u652f\u6301\u81ea\u5b9a\u4e49\u65e5\u671f\u683c\u5f0f\uff09 | `<span class=\"post-time\">\u53d1\u5e03\u65f6\u95f4\uff1a<!--?php the_time('Y\u5e74m\u6708d\u65e5'); ?--><\/span>` |<br \/>\n| `<!--?php the_author(); ?-->` | \u8f93\u51fa\u6587\u7ae0\u4f5c\u8005\u7684\u6635\u79f0 | `<span class=\"post-author\">\u4f5c\u8005\uff1a<!--?php the_author(); ?--><\/span>` |<br \/>\n| `<!--?php the_category(', '); ?-->` | \u8f93\u51fa\u6587\u7ae0\u6240\u5c5e\u5206\u7c7b\uff08\u591a\u4e2a\u5206\u7c7b\u7528\u9017\u53f7\u5206\u9694\uff09 | `<span class=\"post-cat\">\u5206\u7c7b\uff1a<!--?php the_category(', '); ?--><\/span>` |<br \/>\n| `<!--?php the_tags('\u6807\u7b7e\uff1a', ', ', ''); ?-->` | \u8f93\u51fa\u6587\u7ae0\u7684\u6807\u7b7e\uff08\u53c2\u65701\uff1a\u524d\u7f00\uff0c\u53c2\u65702\uff1a\u5206\u9694\u7b26\uff0c\u53c2\u65703\uff1a\u540e\u7f00\uff09 | `<!--?php the_tags('\u6807\u7b7e\uff1a', ', ', ''); ?-->` |<br \/>\n| `<!--?php the_ID(); ?-->` | \u8f93\u51fa\u5f53\u524d\u6587\u7ae0\/\u9875\u9762\u7684ID\uff08\u7528\u4e8e\u81ea\u5b9a\u4e49\u6837\u5f0f\u6216JS\u64cd\u4f5c\uff09 | `<\/p>\n<div id=\"post-&lt;?php the_ID(); ?&gt;\" class=\"post\">` |<br \/>\n| `<!--?php comments_popup_link('0\u6761\u8bc4\u8bba', '1\u6761\u8bc4\u8bba', '%\u6761\u8bc4\u8bba'); ?-->` | \u8f93\u51fa\u6587\u7ae0\u7684\u8bc4\u8bba\u6570\u94fe\u63a5 | `<!--?php comments_popup_link('0\u6761\u8bc4\u8bba', '1\u6761\u8bc4\u8bba', '%\u6761\u8bc4\u8bba'); ?-->` |<br \/>\n| `<!--?php edit_post_link('\u7f16\u8f91', '&lt;span class=\"edit-link\"&gt;', '&lt;\/span&gt;'); ?-->` | \u8f93\u51fa\u6587\u7ae0\u7f16\u8f91\u94fe\u63a5\uff08\u4ec5\u7ba1\u7406\u5458\u53ef\u89c1\uff09 | `<!--?php edit_post_link('\u7f16\u8f91', '\u3010', '\u3011'); ?-->` |### 3. \u5faa\u73af\u76f8\u5173\u6807\u7b7e\uff08\u7528\u4e8e\u6587\u7ae0\u5217\u8868\u6e32\u67d3\uff09<br \/>\nWordPress\u7684**\u4e3b\u5faa\u73af\uff08The Loop\uff09** \u662f\u6838\u5fc3\u673a\u5236\uff0c\u7528\u4e8e\u4ece\u6570\u636e\u5e93\u4e2d\u67e5\u8be2\u6587\u7ae0\u5e76\u5faa\u73af\u8f93\u51fa\uff0c\u51e0\u4e4e\u6240\u6709\u5217\u8868\u9875\u90fd\u4f9d\u8d56\u4e3b\u5faa\u73af\u3002<\/p>\n<p>#### \u4e3b\u5faa\u73af\u7684\u57fa\u672c\u7ed3\u6784<br \/>\n&#8220;`php<br \/>\n<!--?php \/\/ \u68c0\u67e5\u662f\u5426\u6709\u6587\u7ae0 if (have_posts()) : \/\/ \u5faa\u73af\u904d\u5386\u6587\u7ae0 while (have_posts()) : the_post(); \/\/ \u8fd9\u91cc\u8f93\u51fa\u6587\u7ae0\u7684\u6807\u9898\u3001\u5185\u5bb9\u3001\u6458\u8981\u7b49 ?--><\/p>\n<article class=\"post-item\">\n<h2><\/h2>\n<div class=\"post-meta\">\u4f5c\u8005\uff1a<!--?php the_author(); ?--><br \/>\n\u65f6\u95f4\uff1a<!--?php the_time('Y-m-d'); ?--><br \/>\n\u5206\u7c7b\uff1a<!--?php the_category(', '); ?--><\/div>\n<div class=\"post-excerpt\"><\/div>\n<\/article>\n<p>&nbsp;<\/p>\n<p>\u6682\u65e0\u6587\u7ae0\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01<\/p>\n<p><!--?php endif; ?--><br \/>\n&#8220;`<\/p>\n<p>#### \u5faa\u73af\u76f8\u5173\u5173\u952e\u6807\u7b7e<br \/>\n| \u6a21\u677f\u6807\u7b7e | \u529f\u80fd\u8bf4\u660e |<br \/>\n|&#8212;&#8212;&#8212;-|&#8212;&#8212;&#8212;-|<br \/>\n| `<!--?php have_posts(); ?-->` | \u68c0\u67e5\u662f\u5426\u6709\u53ef\u663e\u793a\u7684\u6587\u7ae0\uff0c\u8fd4\u56de\u5e03\u5c14\u503c |<br \/>\n| `<!--?php the_post(); ?-->` | \u5c06\u5faa\u73af\u6307\u9488\u79fb\u52a8\u5230\u4e0b\u4e00\u7bc7\u6587\u7ae0\uff0c\u5e76\u8bbe\u7f6e\u5f53\u524d\u6587\u7ae0\u7684\u5168\u5c40\u53d8\u91cf |<br \/>\n| `<!--?php endwhile; ?-->`\/`<!--?php endif; ?-->` | \u7ed3\u675f\u5faa\u73af\u548c\u6761\u4ef6\u5224\u65ad\uff08PHP\u8bed\u6cd5\uff09 |<br \/>\n| `<!--?php posts_nav_link(); ?-->` | \u8f93\u51fa\u6587\u7ae0\u5217\u8868\u7684\u5206\u9875\u94fe\u63a5\uff08\u4e0a\u4e00\u9875\/\u4e0b\u4e00\u9875\uff09 |<br \/>\n| `<!--?php next_post_link('%link'); ?-->` | \u5355\u7bc7\u6587\u7ae0\u9875\u7684\u201c\u4e0b\u4e00\u7bc7\u201d\u94fe\u63a5 |<br \/>\n| `<!--?php previous_post_link('%link'); ?-->` | \u5355\u7bc7\u6587\u7ae0\u9875\u7684\u201c\u4e0a\u4e00\u7bc7\u201d\u94fe\u63a5 |<\/p>\n<p>### 4. \u6a21\u677f\u5f15\u5165\u76f8\u5173\u6807\u7b7e\uff08\u7528\u4e8e\u6a21\u5757\u5316\u5f00\u53d1\uff09<br \/>\nWordPress\u91c7\u7528**\u6a21\u5757\u5316\u8bbe\u8ba1**\uff0c\u901a\u8fc7\u4ee5\u4e0b\u6807\u7b7e\u5f15\u5165\u5934\u90e8\u3001\u4fa7\u8fb9\u680f\u3001\u5e95\u90e8\u7b49\u516c\u5171\u6a21\u5757\uff0c\u5b9e\u73b0\u4ee3\u7801\u590d\u7528\u3002<\/p>\n<p>| \u6a21\u677f\u6807\u7b7e | \u529f\u80fd\u8bf4\u660e | \u4f7f\u7528\u573a\u666f |<br \/>\n|&#8212;&#8212;&#8212;-|&#8212;&#8212;&#8212;-|&#8212;&#8212;&#8212;-|<br \/>\n| `<!--?php get_header(); ?-->` | \u5f15\u5165`header.php`\u6587\u4ef6\u7684\u5185\u5bb9 | \u653e\u5728\u6240\u6709\u6a21\u677f\u6587\u4ef6\u7684\u9876\u90e8\uff08&#8220;\u6807\u7b7e\u5185\uff09 |<br \/>\n| `<!--?php get_sidebar(); ?-->` | \u5f15\u5165`sidebar.php`\u6587\u4ef6\u7684\u5185\u5bb9 | \u901a\u5e38\u653e\u5728\u6587\u7ae0\u5185\u5bb9\u53f3\u4fa7\u6216\u5de6\u4fa7 |<br \/>\n| `<!--?php get_footer(); ?-->` | \u5f15\u5165`footer.php`\u6587\u4ef6\u7684\u5185\u5bb9 | \u653e\u5728\u6240\u6709\u6a21\u677f\u6587\u4ef6\u7684\u5e95\u90e8 |<br \/>\n| `<!--?php comments_template(); ?-->` | \u5f15\u5165`comments.php`\u6587\u4ef6\u7684\u5185\u5bb9 | \u653e\u5728\u5355\u7bc7\u6587\u7ae0\/\u9875\u9762\u7684\u5185\u5bb9\u4e0b\u65b9 |<br \/>\n| `<!--?php get_search_form(); ?-->` | \u5f15\u5165`searchform.php`\u6587\u4ef6\u7684\u641c\u7d22\u8868\u5355 | \u901a\u5e38\u653e\u5728\u5934\u90e8\u6216\u4fa7\u8fb9\u680f |<\/p>\n<p>### 5. \u5bfc\u822a\u4e0e\u5217\u8868\u76f8\u5173\u6807\u7b7e\uff08\u7528\u4e8e\u4fa7\u8fb9\u680f\/\u5bfc\u822a\u680f\uff09<br \/>\n\u8fd9\u7c7b\u6807\u7b7e\u7528\u4e8e\u8f93\u51fa\u9875\u9762\u5217\u8868\u3001\u5206\u7c7b\u5217\u8868\u3001\u5f52\u6863\u5217\u8868\u7b49\uff0c\u662f\u7f51\u7ad9\u5bfc\u822a\u7684\u6838\u5fc3\u3002<\/p>\n<p>| \u6a21\u677f\u6807\u7b7e | \u529f\u80fd\u8bf4\u660e | \u4f7f\u7528\u793a\u4f8b |<br \/>\n|&#8212;&#8212;&#8212;-|&#8212;&#8212;&#8212;-|&#8212;&#8212;&#8212;-|<br \/>\n| `<!--?php wp_list_pages('title_li=\u9875\u9762\u5bfc\u822a'); ?-->` | \u8f93\u51fa\u9759\u6001\u9875\u9762\u7684\u5217\u8868\uff08\u53ef\u901a\u8fc7\u53c2\u6570\u81ea\u5b9a\u4e49\uff09 | `<\/p>\n<p>` |<br \/>\n| `<!--?php wp_list_categories('title_li=\u5206\u7c7b\u5217\u8868&amp;show_count=1'); ?-->` | \u8f93\u51fa\u5206\u7c7b\u5217\u8868\uff08`show_count=1`\u663e\u793a\u6587\u7ae0\u6570\uff09 | `<\/p>\n<p>` |<br \/>\n| `<!--?php wp_get_archives('type=monthly&amp;show_post_count=1'); ?-->` | \u8f93\u51fa\u65e5\u671f\u5f52\u6863\u5217\u8868\uff08\u6309\u6708\/\u6309\u5e74\u7b49\uff09 | `<\/p>\n<p>` |<br \/>\n| `<!--?php get_calendar(); ?-->` | \u8f93\u51fa\u6587\u7ae0\u65e5\u5386\uff08\u663e\u793a\u6bcf\u65e5\u53d1\u5e03\u7684\u6587\u7ae0\u6570\uff09 | `<\/p>\n<div class=\"calendar\"><\/div>\n<p>` |<br \/>\n| `<!--?php wp_nav_menu(array('theme_location' =&gt; 'main-nav')); ?-->` | \u8f93\u51fa\u81ea\u5b9a\u4e49\u5bfc\u822a\u83dc\u5355\uff08\u9700\u5728`functions.php`\u4e2d\u6ce8\u518c\uff09 | \uff08\u89c1\u4e0b\u6587`functions.php`\u793a\u4f8b\uff09 |<\/p>\n<p>### 6. \u7528\u6237\u4e0e\u7cfb\u7edf\u76f8\u5173\u6807\u7b7e\uff08\u7528\u4e8e\u7528\u6237\u4ea4\u4e92\/\u8c03\u8bd5\uff09<br \/>\n| \u6a21\u677f\u6807\u7b7e | \u529f\u80fd\u8bf4\u660e | \u4f7f\u7528\u793a\u4f8b |<br \/>\n|&#8212;&#8212;&#8212;-|&#8212;&#8212;&#8212;-|&#8212;&#8212;&#8212;-|<br \/>\n| `<!--?php wp_loginout(); ?-->` | \u8f93\u51fa\u767b\u5f55\/\u767b\u51fa\u94fe\u63a5\uff08\u6839\u636e\u7528\u6237\u72b6\u6001\u81ea\u52a8\u5207\u6362\uff09 | `<\/p>\n<div class=\"user-link\"><\/div>\n<p>` |<br \/>\n| `<!--?php wp_register(); ?-->` | \u8f93\u51fa\u7528\u6237\u6ce8\u518c\u94fe\u63a5\uff08\u4ec5\u672a\u767b\u5f55\u7528\u6237\u53ef\u89c1\uff09 | `<!--?php wp_register('', ''); ?-->` |<br \/>\n| `<!--?php the_search_query(); ?-->` | \u8f93\u51fa\u641c\u7d22\u8868\u5355\u4e2d\u7528\u6237\u8f93\u5165\u7684\u5173\u952e\u8bcd | `<\/p>\n<h1>\u641c\u7d22\u7ed3\u679c\uff1a<!--?php the_search_query(); ?--><\/h1>\n<p>` |<br \/>\n| `<!--?php _e('Message'); ?-->` | \u7ffb\u8bd1\u51fd\u6570\uff08\u7528\u4e8e\u591a\u8bed\u8a00\u4e3b\u9898\uff0c\u8f93\u51fa\u6307\u5b9a\u6587\u672c\uff09 | `<\/p>\n<p>&nbsp;<\/p>\n<p>` |<br \/>\n| `<!--?php timer_stop(1); ?-->` | \u8f93\u51fa\u9875\u9762\u52a0\u8f7d\u65f6\u95f4\uff08\u79d2\uff0c\u4fdd\u75591\u4f4d\u5c0f\u6570\uff09 | `<\/p>\n<p>\u9875\u9762\u52a0\u8f7d\u65f6\u95f4\uff1a<!--?php timer_stop(1); ?-->\u79d2<\/p>\n<p>` |<br \/>\n| `<!--?php echo get_num_queries(); ?-->` | \u8f93\u51fa\u9875\u9762\u52a0\u8f7d\u65f6\u7684\u6570\u636e\u5e93\u67e5\u8be2\u6b21\u6570\uff08\u7528\u4e8e\u6027\u80fd\u8c03\u8bd5\uff09 | `<\/p>\n<p>\u6570\u636e\u5e93\u67e5\u8be2\u6b21\u6570\uff1a<!--?php echo get_num_queries(); ?--><\/p>\n<p>` |<\/p>\n<p>### 7. \u7279\u6b8a\u6807\u8bb0\uff08\u7528\u4e8e\u6587\u7ae0\u7f16\u8f91\uff09<br \/>\n\u8fd9\u4e9b\u662f**\u975ePHP\u6807\u7b7e**\uff0c\u76f4\u63a5\u5728\u6587\u7ae0\u7f16\u8f91\u6846\u4e2d\u4f7f\u7528\uff0c\u5b9e\u73b0\u7279\u6b8a\u529f\u80fd\uff1a<\/p>\n<p>| \u6807\u8bb0 | \u529f\u80fd\u8bf4\u660e |<br \/>\n|&#8212;&#8212;|&#8212;&#8212;&#8212;-|<br \/>\n| `<!--more-->` | \u622a\u65ad\u6587\u7ae0\u5185\u5bb9\uff0c\u5728\u5217\u8868\u9875\u663e\u793a\u201c\u9605\u8bfb\u66f4\u591a\u201d\u94fe\u63a5 | \u5728\u6587\u7ae0\u7f16\u8f91\u65f6\u63d2\u5165\uff0c\u5206\u5272\u6458\u8981\u548c\u6b63\u6587 |<br \/>\n| `<!--next page-->` | \u5728\u6587\u7ae0\/\u9875\u9762\u4e2d\u63d2\u5165\u5206\u9875\uff0c\u5b9e\u73b0\u957f\u6587\u5206\u9875 | \u63d2\u5165\u540e\u6587\u7ae0\u4f1a\u5206\u4e3a\u591a\u9875\u663e\u793a |<\/p>\n<p>## \u56db\u3001\u5b9e\u6218\uff1a\u642d\u5efa\u4e00\u4e2a\u6781\u7b80\u7684WordPress\u4e3b\u9898<br \/>\n\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u901a\u8fc7**7\u4e2a\u6838\u5fc3\u6587\u4ef6**\u642d\u5efa\u4e00\u4e2a\u6781\u7b80\u4f46\u529f\u80fd\u5b8c\u6574\u7684WordPress\u4e3b\u9898\uff0c\u5e2e\u52a9\u4f60\u7406\u89e3\u5b9e\u9645\u5f00\u53d1\u6d41\u7a0b\u3002<\/p>\n<p>### \u6b65\u9aa41\uff1a\u521b\u5efa\u4e3b\u9898\u6587\u4ef6\u5939<br \/>\n\u5728`\/wp-content\/themes\/`\u4e0b\u65b0\u5efa\u6587\u4ef6\u5939`my-first-theme`\u3002<\/p>\n<p>### \u6b65\u9aa42\uff1a\u521b\u5efa`style.css`<br \/>\n\u5185\u5bb9\u89c1\u4e0a\u6587\u201c`style.css`\u7684\u5934\u90e8\u6ce8\u91ca\u201d\u793a\u4f8b\uff0c\u53ef\u6dfb\u52a0\u57fa\u7840\u6837\u5f0f\u3002<\/p>\n<p>### \u6b65\u9aa43\uff1a\u521b\u5efa`functions.php`\uff08\u6ce8\u518c\u5bfc\u822a\u548c\u4fa7\u8fb9\u680f\uff09<br \/>\n&#8220;`php<br \/>\n<!--?php \/\/ \u6ce8\u518c\u81ea\u5b9a\u4e49\u5bfc\u822a\u83dc\u5355 function my_first_theme_register_menus() { register_nav_menus(array( 'main-nav' =&gt; '\u4e3b\u5bfc\u822a\u83dc\u5355',&lt;br ?--> &#8216;footer-nav&#8217; =&gt; &#8216;\u9875\u811a\u5bfc\u822a\u83dc\u5355&#8217;<br \/>\n));<br \/>\n}<br \/>\nadd_action(&#8216;init&#8217;, &#8216;my_first_theme_register_menus&#8217;);<\/p>\n<p>\/\/ \u6ce8\u518c\u4fa7\u8fb9\u680f<br \/>\nfunction my_first_theme_register_sidebars() {<br \/>\nregister_sidebar(array(<br \/>\n&#8216;name&#8217; =&gt; &#8216;\u53f3\u4fa7\u8fb9\u680f&#8217;,<br \/>\n&#8216;id&#8217; =&gt; &#8216;right-sidebar&#8217;,<br \/>\n&#8216;description&#8217; =&gt; &#8216;\u7f51\u7ad9\u7684\u53f3\u4fa7\u8fb9\u680f&#8217;,<br \/>\n&#8216;before_widget&#8217; =&gt; &#8216;<\/p>\n<div class=\"widget\">&#8216;,<br \/>\n&#8216;after_widget&#8217; =&gt; &#8216;<\/div>\n<p>&#8216;,<br \/>\n&#8216;before_title&#8217; =&gt; &#8216;<\/p>\n<h3 class=\"widget-title\">&#8216;,<br \/>\n&#8216;after_title&#8217; =&gt; &#8216;<\/h3>\n<p>&#8216;<br \/>\n));<br \/>\n}<br \/>\nadd_action(&#8216;widgets_init&#8217;, &#8216;my_first_theme_register_sidebars&#8217;);<\/p>\n<p>\/\/ \u5f15\u5165\u81ea\u5b9a\u4e49\u811a\u672c\u548c\u6837\u5f0f\uff08\u53ef\u9009\uff09<br \/>\nfunction my_first_theme_enqueue_assets() {<br \/>\n\/\/ \u5f15\u5165style.css<br \/>\nwp_enqueue_style(&#8216;my-first-theme-style&#8217;, get_stylesheet_uri());<br \/>\n\/\/ \u5f15\u5165\u81ea\u5b9a\u4e49JS<br \/>\nwp_enqueue_script(&#8216;my-first-theme-script&#8217;, get_template_directory_uri() . &#8216;\/js\/script.js&#8217;, array(&#8216;jquery&#8217;), &#8216;1.0&#8217;, true);<br \/>\n}<br \/>\nadd_action(&#8216;wp_enqueue_scripts&#8217;, &#8216;my_first_theme_enqueue_assets&#8217;);<br \/>\n?&gt;<br \/>\n&#8220;`<\/p>\n<p>### \u6b65\u9aa44\uff1a\u521b\u5efa`header.php`<br \/>\n&#8220;`php<\/p>\n<header class=\"site-header\">\n<div class=\"logo\">\n<h1><\/h1>\n<p class=\"description\">\n<\/div>\n<p><!-- \u4e3b\u5bfc\u822a\u83dc\u5355 --><\/p>\n<nav class=\"main-nav\"><!--?php wp_nav_menu(array('theme_location' =&gt; 'main-nav', 'container' =&gt; false)); ?--><\/nav>\n<\/header>\n<div class=\"site-content\">&#8220;`### \u6b65\u9aa45\uff1a\u521b\u5efa`sidebar.php`<br \/>\n&#8220;`php<\/p>\n<aside class=\"sidebar\"><!--?php dynamic_sidebar('right-sidebar'); \/\/ \u8c03\u7528\u6ce8\u518c\u7684\u4fa7\u8fb9\u680f ?--><br \/>\n<!-- \u624b\u52a8\u6dfb\u52a0\u5206\u7c7b\u5217\u8868\uff08\u53ef\u9009\uff09 --><\/p>\n<div class=\"widget\">\n<h3 class=\"widget-title\">\u6587\u7ae0\u5206\u7c7b<\/h3>\n<\/div>\n<p><!-- \u641c\u7d22\u8868\u5355 --><\/p>\n<div class=\"widget\">\n<h3 class=\"widget-title\">\u641c\u7d22<\/h3>\n<p>&nbsp;<\/p>\n<\/div>\n<\/aside>\n<p>&#8220;`<\/p>\n<p>### \u6b65\u9aa46\uff1a\u521b\u5efa`footer.php`<br \/>\n&#8220;`php<\/p>\n<\/div>\n<p><!-- .site-content --><\/p>\n<footer class=\"site-footer\">\n<div class=\"footer-nav\"><\/div>\n<p class=\"copyright\">\u00a9 <!--?php echo date('Y'); ?--> <!--?php bloginfo('name'); ?--> &#8211; \u4fdd\u7559\u6240\u6709\u6743\u5229<\/p>\n<p>\u9875\u9762\u52a0\u8f7d\u65f6\u95f4\uff1a<!--?php timer_stop(1); ?-->\u79d2 | \u67e5\u8be2\u6b21\u6570\uff1a<!--?php echo get_num_queries(); ?--><\/p>\n<\/footer>\n<p><!--?php wp_footer(); \/\/ \u5fc5\u987b\u6dfb\u52a0\uff0c\u7528\u4e8eWordPress\u63d2\u4ef6\u548c\u811a\u672c\u7684\u5f15\u5165 ?--><\/p>\n<p>&#8220;`<\/p>\n<p>### \u6b65\u9aa47\uff1a\u521b\u5efa`index.php`\uff08\u4e3b\u6a21\u677f\uff09<br \/>\n&#8220;`php<br \/>\n<!--?php get_header(); \/\/ \u5f15\u5165\u5934\u90e8 ?--><\/p>\n<p><main class=\"content\"><br \/>\n<!--?php \/\/ \u4e3b\u5faa\u73af if (have_posts()) : while (have_posts()) : the_post(); ?--><\/main><\/p>\n<article class=\"post\">\n<h2 class=\"post-title\"><\/h2>\n<div class=\"post-meta\">\u4f5c\u8005\uff1a<!--?php the_author(); ?--><br \/>\n\u65f6\u95f4\uff1a<!--?php the_time('Y\u5e74m\u6708d\u65e5'); ?--><br \/>\n\u5206\u7c7b\uff1a<!--?php the_category(', '); ?--><\/div>\n<div class=\"post-content\"><!--?php the_excerpt(); ?--><br \/>\n<a class=\"read-more\" href=\"&lt;?php the_permalink(); ?&gt;\">\u9605\u8bfb\u66f4\u591a<\/a><\/div>\n<\/article>\n<p><!--?php &lt;br ?--> endwhile;<\/p>\n<p>\/\/ \u5206\u9875\u94fe\u63a5<br \/>\nposts_nav_link(&#8216; | &#8216;, &#8216;\u4e0a\u4e00\u9875&#8217;, &#8216;\u4e0b\u4e00\u9875&#8217;);<\/p>\n<p>else :<br \/>\necho &#8216;<\/p>\n<p>\u6682\u65e0\u6587\u7ae0<\/p>\n<p>&#8216;;<br \/>\nendif;<br \/>\n?&gt;<\/p>\n<p><!--?php get_sidebar(); \/\/ \u5f15\u5165\u4fa7\u8fb9\u680f ?--><br \/>\n<!--?php get_footer(); \/\/ \u5f15\u5165\u5e95\u90e8 ?--><br \/>\n&#8220;`<\/p>\n<p>### \u6b65\u9aa48\uff1a\u6fc0\u6d3b\u4e3b\u9898<br \/>\n\u767b\u5f55WordPress\u540e\u53f0\u2192\u5916\u89c2\u2192\u4e3b\u9898\uff0c\u627e\u5230\u201cMy First Theme\u201d\u5e76\u6fc0\u6d3b\uff0c\u5373\u53ef\u770b\u5230\u4f60\u7684\u81ea\u5b9a\u4e49\u4e3b\u9898\u6548\u679c\u3002<\/p>\n<p>## \u4e94\u3001\u8fdb\u9636\u5b66\u4e60\u5efa\u8bae<br \/>\n1. **\u638c\u63e1\u6a21\u677f\u5c42\u6b21**\uff1a\u5b66\u4e60WordPress\u5b98\u65b9\u7684[\u6a21\u677f\u5c42\u6b21\u56fe](https:\/\/developer.wordpress.org\/themes\/basics\/template-hierarchy\/)\uff0c\u4e86\u89e3\u4e0d\u540c\u9875\u9762\u7684\u6a21\u677f\u5339\u914d\u89c4\u5219\u3002<br \/>\n2. **\u4f7f\u7528\u5b50\u4e3b\u9898**\uff1a\u4e3a\u907f\u514d\u4fee\u6539\u5b98\u65b9\u4e3b\u9898\u540e\u4e22\u5931\u4ee3\u7801\uff0c\u5efa\u8bae\u4f7f\u7528**\u5b50\u4e3b\u9898\uff08Child Theme\uff09** \u8fdb\u884c\u4e8c\u6b21\u5f00\u53d1\u3002<br \/>\n3. **\u5b66\u4e60\u81ea\u5b9a\u4e49\u5b57\u6bb5**\uff1a\u901a\u8fc7`custom fields`\u6216\u9ad8\u7ea7\u81ea\u5b9a\u4e49\u5b57\u6bb5\uff08ACF\uff09\u63d2\u4ef6\uff0c\u6269\u5c55\u6587\u7ae0\/\u9875\u9762\u7684\u81ea\u5b9a\u4e49\u6570\u636e\u3002<br \/>\n4. **\u54cd\u5e94\u5f0f\u8bbe\u8ba1**\uff1a\u7ed3\u5408CSS\u6846\u67b6\uff08\u5982Bootstrap\uff09\u5b9e\u73b0\u79fb\u52a8\u7aef\u9002\u914d\u3002<br \/>\n5. **\u6027\u80fd\u4f18\u5316**\uff1a\u5b66\u4e60\u7f13\u5b58\u3001\u56fe\u7247\u538b\u7f29\u3001\u4ee3\u7801\u7cbe\u7b80\u7b49\u6280\u5de7\uff0c\u63d0\u5347\u4e3b\u9898\u52a0\u8f7d\u901f\u5ea6\u3002<\/p>\n<p>## \u603b\u7ed3<br \/>\nWordPress\u4e3b\u9898\u5f00\u53d1\u7684\u6838\u5fc3\u662f**\u7406\u89e3\u6587\u4ef6\u7ed3\u6784**\u548c**\u719f\u7ec3\u4f7f\u7528\u6a21\u677f\u6807\u7b7e**\uff0c\u901a\u8fc7\u6a21\u5757\u5316\u7684\u65b9\u5f0f\u5b9e\u73b0\u4ee3\u7801\u590d\u7528\u548c\u529f\u80fd\u6269\u5c55\u3002\u672c\u6587\u4ece\u57fa\u7840\u6587\u4ef6\u3001\u6a21\u677f\u6807\u7b7e\u5230\u5b9e\u6218\u5f00\u53d1\uff0c\u8986\u76d6\u4e86\u65b0\u624b\u5165\u95e8\u7684\u6240\u6709\u5173\u952e\u77e5\u8bc6\u70b9\uff0c\u5e0c\u671b\u80fd\u5e2e\u52a9\u4f60\u5feb\u901f\u642d\u5efa\u5c5e\u4e8e\u81ea\u5df1\u7684WordPress\u4e3b\u9898\u3002\u8bb0\u4f4f\uff0c\u5b9e\u8df5\u662f\u6700\u597d\u7684\u5b66\u4e60\u65b9\u5f0f\uff0c\u591a\u52a8\u624b\u4fee\u6539\u4ee3\u7801\u3001\u8c03\u8bd5\u6548\u679c\uff0c\u624d\u80fd\u771f\u6b63\u638c\u63e1\u4e3b\u9898\u5f00\u53d1\u7684\u7cbe\u9ad3\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p># WordPress\u4e3b\u9898\u5f00\u53d1\u96f6\u57fa\u7840\u6559\u7a0b\uff1a\u6838\u5fc3\u6587\u4ef6\u4e0e\u6a21\u677f\u4ee3\u7801\u5168\u89e3\u6790 WordPress\u4f5c\u4e3a\u5168\u7403\u6700\u6d41\u884c\u7684CMS\uff08 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[68],"tags":[],"content_type":[],"class_list":["post-15876","post","type-post","status-publish","format-standard","hentry","category-zzjy"],"_links":{"self":[{"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/posts\/15876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15876"}],"version-history":[{"count":0,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=\/wp\/v2\/posts\/15876\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15876"},{"taxonomy":"content_type","embeddable":true,"href":"https:\/\/www.aiersheng.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcontent_type&post=15876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}