$sticky = get_option( 'sticky_posts' );\r\nquery_posts(array('ignore_sticky_posts' => 1,'post__not_in' => $sticky) );<\/code><\/pre>\n\n\n\n\u4e0d\u60f3\u628a\u7f6e\u9876\u6587\u7ae0\u548c\u975e\u7f6e\u9876\u6587\u7ae0\u533a\u5206\u5f00\u6765\u7684\u8bdd\uff0c\u76f4\u63a5\u628a\u4e0d\u8f93\u51fa\u7f6e\u9876\u6587\u7ae0\u4e2d\u7684 ignore_sticky_posts \u548c post__not_in \u53bb\u6389\u5373\u53ef\u6b63\u5e38\u8f93\u51fa\uff0c\u5e76\u4e14\u81ea\u52a8\u5c06\u7f6e\u9876\u6587\u7ae0\u6392\u5728\u9996\u4f4d\u3002<\/p>\n\n\n\n
\u5982\u679c\u662f\u6b63\u5e38\u8f93\u51fa\u6587\u7ae0\u8ba9\u7f6e\u9876\u6587\u7ae0\u81ea\u52a8\u7f6e\u9876\uff0c\u90a3\u4e48\u6211\u4eec\u5f88\u6709\u5fc5\u8981\u5728\u7f6e\u9876\u6587\u7ae0\u6807\u9898\u540e\u9762\u6216\u524d\u9762\u6dfb\u52a0\u3010\u7f6e\u9876\u3011\u6807\u8bc6\uff0c\u4ee5\u4fbf\u7528\u6237\u77e5\u9053\u8fd9\u662f\u4e00\u7bc7\u7f6e\u9876\u6587\u7ae0\u3002\u65b9\u6cd5\u4e5f\u5f88\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5728\u5faa\u73af\u8bed\u53e5\u4e2d\u7684\u6807\u9898\u540e\u9762\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\u5373\u53ef\uff1a<\/p>\n\n\n\n
<?php if (is_sticky()) {?><span class=\"sticky-icon\">\u7f6e\u9876<\/span><?php } ?>\r<\/code><\/pre>\n\n\n\n\u610f\u601d\u5c31\u662f\u5224\u5b9a\u5f53\u524d\u6587\u7ae0\u662f\u5426\u4e3a\u7f6e\u9876\u6587\u7ae0\uff0c\u662f\u7684\u8bdd\u5c31\u8f93\u51fa\u7f6e\u9876\u6807\u8bc6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u5728WordPress\u4e2d\uff0c\u539f\u751f\u662f\u81ea\u5e26\u6587\u7ae0\u201c\u5728\u535a\u5ba2\u4e2d\u7f6e\u9876\u201d\u8fd9\u4e2a\u529f\u80fd\u9009\u9879\u7684\uff0c\u4f46\u662f\u6211\u4eec\u5728\u63d2\u4ef6\u5f00\u53d1\u65f6\u5982\u679c\u81ea\u5b9a\u4e49\u4e86\u6587\u7ae0\u7684\u7c7b […]<\/p>\n","protected":false},"author":1,"featured_media":43051,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[33,219,265],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46934"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=46934"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46934\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/43051"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=46934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=46934"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=46934"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}