{"id":745,"date":"2013-01-13T18:44:39","date_gmt":"2013-01-13T10:44:39","guid":{"rendered":"https:\/\/sdeno.com\/?p=745"},"modified":"2013-01-13T18:44:39","modified_gmt":"2013-01-13T10:44:39","slug":"wordpress%e4%be%a7%e8%be%b9%e6%a0%8f%e6%98%be%e7%a4%ba%e6%9c%80%e6%96%b0%e7%95%99%e8%a8%80%e8%af%84%e8%ae%ba","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=745","title":{"rendered":"wordpress\u4fa7\u8fb9\u680f\u663e\u793a\u6700\u65b0\u7559\u8a00\u8bc4\u8bba"},"content":{"rendered":"<p>\u6709\u4e9b\u7ad9\u957f\u559c\u6b22\u628a\u6700\u8fd1\u7684\u7559\u8a00\u653e\u5230\u9996\u9875\u4e0a\u52a0\u5f3a\u4e92\u52a8\u4ea4\u6d41\uff0c\u53ef\u4ee5\u5728\u81ea\u5df1\u9700\u8981\u663e\u793a\u7684\u4f4d\u7f6e\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<p>[code]&lt;?php<br \/>\nglobal $wpdb, $comments, $comment;<br \/>\n$comments = $wpdb-&gt;get_results(&#8220;SELECT comment_author, comment_author_url, comment_ID, comment_post_ID, SUBSTRING(comment_content,1,65) AS comment_excerpt<br \/>\nFROM $wpdb-&gt;comments LEFT OUTER JOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID = $wpdb-&gt;posts.ID) WHERE comment_approved = &#8216;1&#8217; AND comment_type = &#8221; AND post_password = &#8221; ORDER BY comment_date_gmt DESC LIMIT 5&#8243;); ?&gt;<br \/>\n&lt;h3&gt;&lt;?php _e(&#8216;\u6700\u65b0\u8bc4\u8bba&#8217;) ?&gt;&lt;\/h3&gt;<br \/>\n&lt;ul id=&#8221;recentcomments&#8221;&gt;&lt;?php if ( $comments ) : foreach ($comments as $comment) : echo &#8216;&lt;li class=&#8221;recentcomments&#8221;&gt;&#8217; . sprintf(__(&#8216;&lt;span class=&#8221;comment-author vcard&#8221;&gt;%1$s&lt;\/span&gt;<br \/>\n&lt;span class=&#8221;comment-entry-title&#8221;&gt;on &lt;cite title=&#8221;%2$s&#8221;&gt;%2$s&lt;\/cite&gt;&lt;\/span&gt; &lt;blockquote class=&#8221;comment-summary&#8221; cite=&#8221;%3$s&#8221; title=&#8221;Comment on %2$s&#8221;&gt;%4$s &amp;hellip;&lt;\/blockquote&gt;&#8217;), &#8216;&lt;a href=&#8221;&#8216;. get_permalink($comment-&gt;comment_post_ID) . &#8216;#comment-&#8216; . $comment-&gt;comment_ID . &#8216;&#8221; title=&#8221;&#8216; . $comment-&gt;comment_author . &#8216; on &#8216; . get_the_title($comment-&gt;comment_post_ID) . &#8216;&#8221;&gt;&lt;span class=&#8221;fn n&#8221;&gt;&#8217; . $comment-&gt;comment_author . &#8216;&lt;\/span&gt;&lt;\/a&gt;&#8217;, get_the_title($comment-&gt;comment_post_ID), get_permalink($comment-&gt;comment_post_ID), strip_tags($comment-&gt;comment_excerpt) ) . &#8216;&lt;\/li&gt;&#8217;; endforeach; endif; ?&gt;&lt;\/ul&gt;[\/code]<\/p>\n<p>\u5982\u679c\u9700\u8981\u7f8e\u5316\u81ea\u5df1\u5728\u6dfb\u52a0CSS\u6837\u5f0f\u3002<\/p>\n<div>\u6587\u7ae0\u6765\u6e90\uff1a\u4e2a\u4eba\u968f\u7b14 \u9999\u683c\u91cc\u62c9seo (<a href=\"https:\/\/sdeno.com\">www.xgllseo.com<\/a>)\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff0c\u8bf7\u5c0a\u91cd\u7248\u6743\u3002<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u4e9b\u7ad9\u957f\u559c\u6b22\u628a\u6700\u8fd1\u7684\u7559\u8a00\u653e\u5230\u9996\u9875\u4e0a\u52a0\u5f3a\u4e92\u52a8\u4ea4\u6d41\uff0c\u53ef\u4ee5\u5728\u81ea\u5df1\u9700\u8981\u663e\u793a\u7684\u4f4d\u7f6e\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a [code]&lt;? [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,11],"tags":[],"class_list":["post-745","post","type-post","status-publish","format-standard","hentry","category-wordpress","category-11"],"_links":{"self":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=745"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/745\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}