{"id":32150,"date":"2024-11-25T09:37:50","date_gmt":"2024-11-25T01:37:50","guid":{"rendered":"https:\/\/fwq.ai\/blog\/32150\/"},"modified":"2024-11-25T09:37:50","modified_gmt":"2024-11-25T01:37:50","slug":"wordpress%e4%b8%bb%e9%a2%98%e5%88%b6%e4%bd%9c%e5%85%a8%e8%bf%87%e7%a8%8b%ef%bc%88%e5%8d%81%e4%b8%80%ef%bc%89%ef%bc%9a%e5%88%b6%e4%bd%9cpage-php","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/32150\/","title":{"rendered":"WordPress\u4e3b\u9898\u5236\u4f5c\u5168\u8fc7\u7a0b\uff08\u5341\u4e00\uff09\uff1a\u5236\u4f5cpage.php"},"content":{"rendered":"<p>\u524d\u9762\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u4e86\u300a\/501087.html&#8221; target=&#8221;_blank&#8221;&gt;wordpress\u4e3b\u9898\u5236\u4f5c\u5168\u8fc7\u7a0b\uff08\u5341\uff09\uff1a\u5236\u4f5ccomments.php\u300b\uff0c\u672c\u6587\u7ee7\u7eed\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u5982\u4f55\u5236\u4f5cpage.php\uff0c\u4e0b\u9762\u4e00\u8d77\u6765\u770b\u4e00\u4e0b\u5427~<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/63f428cf7f75d835.jpg\" class=\"aligncenter\" title=\"WordPress\u4e3b\u9898\u5236\u4f5c\u5168\u8fc7\u7a0b\uff08\u5341\u4e00\uff09\uff1a\u5236\u4f5cpage.php\u63d2\u56fe\" alt=\"WordPress\u4e3b\u9898\u5236\u4f5c\u5168\u8fc7\u7a0b\uff08\u5341\u4e00\uff09\uff1a\u5236\u4f5cpage.php\u63d2\u56fe\" \/><\/p>\n<p>page.php\u4e5f\u5c31\u662f\u9875\u9762\uff0c\u53ef\u80fd\u5927\u5bb6\u4e0d\u592a\u7406\u89e3\u9875\u9762\u662f\u4ec0\u4e48\u610f\u601d\uff0c\u535a\u5ba2\u4e0a\u7684\u6240\u6709\u7f51\u9875\u4e0d\u90fd\u662f\u9875\u9762\u5417\uff1f\u6211\u4eec\u8fd9\u91cc\u6307\u7684\u9875\u9762\u4e00\u4e2a\u5355\u72ec\u7684\u9875\u9762\uff0c\u5982&#8221;\u5173\u4e8e&#8221;\u3001&#8221;\u8054\u7cfb\u65b9\u5f0f&#8221;\u7b49\uff0c\u53ef\u4ee5\u5728WordPress\u540e\u53f0 &#8211; \u9875\u9762\uff0c\u8fdb\u884c\u9875\u9762\u7684\u6dfb\u52a0\u4fee\u6539\u7b49\u3002<\/p>\n<p>\u8fd9\u4e2apage.php\u6709\u5f88\u591a\u4e1c\u897f\u8ddfsingle.php\u4e5f\u90fd\u662f\u76f8\u901a\u7684\uff0c\u6216\u8005\u57fa\u672c\u90fd\u4e00\u6837\uff0c\u8fd9\u91cc\u6211\u4eec\u5bf9\u90e8\u5206\u5185\u5bb9\u4e5f\u4e0d\u505a\u592a\u591a\u7684\u89e3\u6790\uff0c\u76f4\u63a5\u4e0a\u7ed3\u679c\uff0c\u5982\u679c\u6709\u4e0d\u61c2\u7684\u53ef\u4ee5\u7ffb\u7ffb\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p><strong>1\u3001\u6dfb\u52a0\u6807\u9898<\/strong><\/p>\n<p>\u641c\u7d22\u4ee3\u7801\uff1a <\/p>\n<p>\u6539\u6210\uff1a<\/p>\n<pre>&lt;!-- Column 1 \/ Content --&gt;\n&lt;h2&gt;&lt;?php  the_title(); ?&gt;&lt;\/h2&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>&nbsp;<\/strong><\/p>\n<p><strong>2\u3001\u6dfb\u52a0\u9875\u9762\u5185\u5bb9<\/strong><\/p>\n<pre>&lt;p&gt;Lorem&nbsp;ipsum&nbsp;dolor&nbsp;sit&nbsp;amet,&nbsp;consectetur&nbsp;adipiscing&nbsp;elit.&nbsp;Mauris&nbsp;vel&nbsp;porta&nbsp;erat.&nbsp;Quisque&nbsp;sit&nbsp;amet&nbsp;risus&nbsp;at&nbsp;odio&nbsp;pellentesque&nbsp;sollicitudin.&nbsp;Proin&nbsp;suscipit&nbsp;molestie&nbsp;facilisis.&nbsp;Aenean&nbsp;vel&nbsp;massa&nbsp;magna.&nbsp;Proin&nbsp;nec&nbsp;lacinia&nbsp;augue.&nbsp;Mauris&nbsp;venenatis&nbsp;libero&nbsp;nec&nbsp;odio&nbsp;viverra&nbsp;consequat.&nbsp;In&nbsp;hac&nbsp;habitasse&nbsp;platea&nbsp;dictumst.&lt;\/p&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6539\u6210\uff1a<\/p>\n<pre>&lt;?php  the_content(); ?&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>&nbsp;<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p><strong>3\u3001\u6dfb\u52a0\u8bc4\u8bba\u6846<\/strong><\/p>\n<p>\u5c06 \u4e0e \u4e4b\u95f4\u7684\u6240\u6709\u4ee3\u7801\u5220\u9664\uff08\u5305\u62ec\uff09<\/p>\n<p>\u66ff\u6362\u6210\uff1a<\/p>\n<pre>&lt;?php  comments_template(); ?&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>&nbsp;<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p><strong>4\u3001\u6dfb\u52a0\u67e5\u8be2\u8bed\u53e5<\/strong><\/p>\n<p>\u641c\u7d22\u4ee3\u7801\uff1a <\/p>\n<p>\u6539\u6210\uff1a<\/p>\n<pre>&lt;!-- Column 1 \/ Content --&gt;\n&lt;?php  if (have_posts()) : the_post(); update_post_caches($posts); ?&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u67e5\u627e\uff1a<\/p>\n<pre>\n&lt;?php  get_sidebar(); ?&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6539\u6210\uff1a<\/p>\n<pre>\n&lt;?php  else : ?&gt;&lt;div&gt;\n&lt;p&gt;\t\t\u6ca1\u6709\u627e\u5230\u4f60\u60f3\u8981\u7684\u9875\u9762\uff01&lt;\/p&gt;\n&lt;pre class=\"brush:php;toolbar:false\"&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u9762\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u4e86\u300a\/501087.html&#8221; target=&#8221;_blank&#8221;&gt;wordpress\u4e3b\u9898\u5236\u4f5c\u5168\u8fc7\u7a0b\uff08\u5341\uff09\uff1a\u5236\u4f5ccomments.php\u300b\uff0c\u672c\u6587\u7ee7\u7eed\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u5982\u4f55\u5236\u4f5cpage.php\uff0c\u4e0b\u9762\u4e00\u8d77\u6765\u770b\u4e00\u4e0b\u5427~ page.php\u4e5f\u5c31\u662f\u9875\u9762\uff0c\u53ef\u80fd\u5927\u5bb6\u4e0d\u592a\u7406\u89e3\u9875\u9762\u662f\u4ec0\u4e48\u610f\u601d\uff0c\u535a\u5ba2\u4e0a\u7684\u6240\u6709\u7f51\u9875\u4e0d\u90fd\u662f\u9875\u9762\u5417\uff1f\u6211\u4eec\u8fd9\u91cc\u6307\u7684\u9875\u9762\u4e00\u4e2a\u5355\u72ec\u7684\u9875\u9762\uff0c\u5982&#8221;\u5173\u4e8e&#8221;\u3001&#8221;\u8054\u7cfb\u65b9\u5f0f&#8221;\u7b49\uff0c\u53ef\u4ee5\u5728WordPress\u540e\u53f0 &#8211; \u9875\u9762\uff0c\u8fdb\u884c\u9875\u9762\u7684\u6dfb\u52a0\u4fee\u6539\u7b49\u3002 \u8fd9\u4e2apage.php\u6709\u5f88\u591a\u4e1c\u897f\u8ddfsingle.php\u4e5f\u90fd\u662f\u76f8\u901a\u7684\uff0c\u6216\u8005\u57fa\u672c\u90fd\u4e00\u6837\uff0c\u8fd9\u91cc\u6211\u4eec\u5bf9\u90e8\u5206\u5185\u5bb9\u4e5f\u4e0d\u505a\u592a\u591a\u7684\u89e3\u6790\uff0c\u76f4\u63a5\u4e0a\u7ed3\u679c\uff0c\u5982\u679c\u6709\u4e0d\u61c2\u7684\u53ef\u4ee5\u7ffb\u7ffb\u3002 &nbsp; \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b 1\u3001\u6dfb\u52a0\u6807\u9898 \u641c\u7d22\u4ee3\u7801\uff1a \u6539\u6210\uff1a &lt;!&#8211; Column 1 \/ Content &#8211;&gt; &lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;\/h2&gt; \u767b\u5f55\u540e\u590d\u5236 &nbsp; 2\u3001\u6dfb\u52a0\u9875\u9762\u5185\u5bb9 &lt;p&gt;Lorem&nbsp;ipsum&nbsp;dolor&nbsp;sit&nbsp;amet,&nbsp;consectetur&nbsp;adipiscing&nbsp;elit.&nbsp;Mauris&nbsp;vel&nbsp;porta&nbsp;erat.&nbsp;Quisque&nbsp;sit&nbsp;amet&nbsp;risus&nbsp;at&nbsp;odio&nbsp;pellentesque&nbsp;sollicitudin.&nbsp;Proin&nbsp;suscipit&nbsp;molestie&nbsp;facilisis.&nbsp;Aenean&nbsp;vel&nbsp;massa&nbsp;magna.&nbsp;Proin&nbsp;nec&nbsp;lacinia&nbsp;augue.&nbsp;Mauris&nbsp;venenatis&nbsp;libero&nbsp;nec&nbsp;odio&nbsp;viverra&nbsp;consequat.&nbsp;In&nbsp;hac&nbsp;habitasse&nbsp;platea&nbsp;dictumst.&lt;\/p&gt; \u767b\u5f55\u540e\u590d\u5236 \u6539\u6210\uff1a &lt;?php the_content(); ?&gt; \u767b\u5f55\u540e\u590d\u5236 &nbsp; \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b 3\u3001\u6dfb\u52a0\u8bc4\u8bba\u6846 \u5c06 \u4e0e \u4e4b\u95f4\u7684\u6240\u6709\u4ee3\u7801\u5220\u9664\uff08\u5305\u62ec\uff09 \u66ff\u6362\u6210\uff1a &lt;?php comments_template(); ?&gt; \u767b\u5f55\u540e\u590d\u5236 &nbsp; \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b 4\u3001\u6dfb\u52a0\u67e5\u8be2\u8bed\u53e5 \u641c\u7d22\u4ee3\u7801\uff1a \u6539\u6210\uff1a &lt;!&#8211; Column 1 \/ Content &#8211;&gt; &lt;?php if (have_posts()) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-32150","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/32150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=32150"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/32150\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=32150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=32150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=32150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}