{"id":3351,"date":"2019-12-06T07:03:11","date_gmt":"2019-12-05T23:03:11","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=3351"},"modified":"2019-12-04T14:11:57","modified_gmt":"2019-12-04T06:11:57","slug":"wordpress%e7%ae%a1%e7%90%86%e5%90%8e%e5%8f%b0%e9%bb%98%e8%ae%a4%e6%96%87%e7%ab%a0%e6%98%be%e7%a4%ba%e7%9a%84%e6%95%b0%e9%87%8f%e4%bf%ae%e6%94%b9","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/3351.html","title":{"rendered":"WordPress\u7ba1\u7406\u540e\u53f0\u9ed8\u8ba4\u6587\u7ae0\u663e\u793a\u7684\u6570\u91cf\u4fee\u6539"},"content":{"rendered":"

wordpress\u540e\u53f0\u6587\u7ae0\u9ed8\u8ba4\u7684\u663e\u793a\u6570\u91cf\u662f20\u6761\uff0c\u5982\u679c\u4f60\u7684wordpress\u7684\u7248\u672c\u8fc7\u4f4e\u53ef\u80fd\u662f15\u6761\u3002\u5f53\u6211\u4eec\u9700\u8981\u5bf9\u6587\u7ae0\u8fdb\u884c\u6279\u91cf\u7f16\u8f91\u65f6\uff0c\u4f8b\u5982\u4fee\u6539\u6807\u7b7e\uff0c\u6216\u8005\u5220\u9664\u6587\u7ae0\u65f6\uff0c\u660e\u663e\u8fd9\u4e2a\u6570\u91cf\u5c31\u4e0d\u591f\u7528\u4e86\uff0c\u6211\u4eec\u53ef\u4ee5\u4fee\u6539post.php\u6765\u589e\u52a0\u6587\u7ae0\u663e\u793a\u7684\u6570\u91cf\u3002<\/p>\n

\u4fee\u6539\u65b9\u6cd5\uff1a<\/h2>\n

\u6253\u5f00wp-admin\/includes\/post.php<\/p>\n

\u641c\u7d22<\/p>\n

$posts_per_page = 20<\/span>;<\/code><\/pre>\n

\"\"<\/a><\/p>\n

\u5927\u7ea6\u57281053\u884c\uff0c\u628a20\u4fee\u6539\u4e3a\u4f60\u9700\u8981\u7684\u6570\u5b57 \uff0c\u6bd4\u598250\uff0c\u6216\u8005100\uff0c\u4e0d\u8981\u4fee\u6539\u592a\u9ad8\u3002\u592a\u9ad8\u7684\u8bdd\uff0c\u663e\u793a\u7684\u662f\u975e\u5e38\u6162\u7684\u3002<\/p>\n

\u8001\u7248\u672c\u7684wordpress\u4fee\u6539\u65b9\u5f0f\u5982\u4e0b\uff1a
\n1. \u6253\u5f00wp-admin\/includes\/post.php
\n2. \u627e\u5230\u4e0b\u9762\u8fd9\u4e00\u53e5<\/p>\n

wp(\"post_type=post&what_to_show=posts$post_status_q&posts_per_page=15<\/span>&order=$order&orderby=$orderby\");<\/code><\/pre>\n

\u628a15\u6539\u6210\u4f60\u60f3\u8f93\u51fa\u7684\u6587\u7ae0\u6570\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

wordpress\u540e\u53f0\u6587\u7ae0\u9ed8\u8ba4\u7684\u663e\u793a\u6570\u91cf\u662f20\u6761\uff0c\u5982\u679c\u4f60\u7684wordpress\u7684\u7248\u672c\u8fc7\u4f4e\u53ef\u80fd\u662f15\u6761\u3002\u5f53\u6211\u4eec\u9700\u8981 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[5,1116,858],"class_list":["post-3351","post","type-post","status-publish","format-standard","hentry","category-web","tag-wordpress","tag-1116","tag-858"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/3351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=3351"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/3351\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=3351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=3351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=3351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}