{"id":393,"date":"2018-01-03T12:19:12","date_gmt":"2018-01-03T04:19:12","guid":{"rendered":"http:\/\/pony.hk\/?p=393"},"modified":"2018-04-13T20:38:12","modified_gmt":"2018-04-13T12:38:12","slug":"wordpress-%e6%8e%a7%e5%88%b6%e6%a0%87%e7%ad%be%e4%ba%91%e6%96%87%e5%ad%97%e5%a4%a7%e5%b0%8f%e6%95%b0%e9%87%8f%e6%8e%92%e5%ba%8f%e7%9a%84%e7%ae%80%e5%8d%95%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/lnmp.ivan.xin\/?p=393","title":{"rendered":"wordpress \u63a7\u5236\u6807\u7b7e\u4e91\u6587\u5b57\u5927\u5c0f,\u6570\u91cf,\u6392\u5e8f\u7684\u7b80\u5355\u65b9\u6cd5"},"content":{"rendered":"<p>wordpress\u4e3b\u9898\u4e2d\u7684\u5c0f\u5de5\u5177\u4e2d\u7684\u6807\u7b7e\u4e91\u663e\u793a\u7684\u90fd\u662fpt\u5b57\u53f7\uff0c\u6211\u4eec\u5e38\u5e38\u9700\u8981\u663e\u793apx\u5355\u4f4d\u7684\u5b57\u53f7\u600e\u4e48\u505a\u5462\uff0c\u5927\u90e8\u5206\u6587\u7ae0\u662f\u8bf4\u4fee\u6539wordpress\u7684include\u4e2d\u7684\u6587\u4ef6\uff0c\u4f46\u662f\u8fd9\u6837\u505a\u7684\u7ed3\u679c\u662f\u5347\u7ea7\u9700\u8981\u91cd\u65b0\u4fee\u6539\u3002\u4e0b\u9762\u6211\u4ecb\u7ecd\u4e00\u79cd\u65b9\u4fbf\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7wordpress\u7684\u51fd\u6570\u94a9\u5b50\u6765\u4fee\u6539\u8fd9\u4e2a\u9ed8\u8ba4\u51fd\u6570\u3002<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<blockquote><p>\/\/\u63a7\u5236\u4fa7\u8fb9\u680f\u6807\u7b7e\u4e91<br \/>\nfunction my_tag_cloud_filter($args = array()) {<br \/>\n$args['smallest'] = 12; \/\/\u6700\u5c0f\u5b57\u53f7<br \/>\n$args['largest'] = 12; \/\/\u6700\u5927\u5b57\u53f7<br \/>\n$args['unit'] ='px'; \/\/\u5b57\u4f53\u5355\u4f4d px\uff0cpt\uff0cem<br \/>\n$args['number'] =20;\/\/\u8c03\u7528\u6570\u91cf<br \/>\n$args['orderby']='count';\/\/\u6309\u4f55\u503c\u6392\u5e8f<br \/>\n$args['order']='RAND';\/\/\u6392\u5e8f\u65b9\u5f0f<br \/>\n\/\/\u66f4\u591a\u53c2\u6570\u53c2\u89c1\u4e0b\u9762\u7684\u53c2\u6570\u8bf4\u660e<br \/>\nreturn $args;}<br \/>\nadd_filter('widget_tag_cloud_args', 'my_tag_cloud_filter', 10);<\/p><\/blockquote>\n<p>\u5c06\u4ee5\u4e0a\u4ee3\u7801\u653e\u5165\u4e3b\u9898function.php\u6587\u4ef6\u4e2d.\u53c2\u6570\u4e0d\u7528\u5168\u5e26\u4e0a\uff0c\u8c03\u7528\u4f60\u9700\u8981\u7684\u5c31\u53ef\u4ee5\u4e86\u3002\u53c2\u6570\u5982\u4e0b\uff1a<\/p>\n<table class=\"dataintable\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"71\">smallest<\/td>\n<td valign=\"top\" width=\"133\">\u6700\u5c0f\u5b57\u4f53<\/td>\n<td valign=\"top\" width=\"154\">\u9ed8\u8ba4\u4e3a8<\/td>\n<td valign=\"top\" width=\"199\"><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"71\">largest<\/td>\n<td valign=\"top\" width=\"133\">\u6700\u5927\u5b57\u4f53<\/td>\n<td valign=\"top\" width=\"154\">\u9ed8\u8ba4\u4e3a22<\/td>\n<td valign=\"top\" width=\"199\"><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"71\">unit<\/td>\n<td valign=\"top\" width=\"133\">\u5b57\u4f53\u5927\u5c0f\u7684\u5355\u4f4d<\/td>\n<td valign=\"top\" width=\"154\">\u9ed8\u8ba4\u4e3apt<\/td>\n<td valign=\"top\" width=\"199\">\u6216\u8005px,em<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"71\">number<\/td>\n<td valign=\"top\" width=\"133\">\u663e\u793a\u6807\u7b7e\u4e2a\u6570<\/td>\n<td valign=\"top\" width=\"154\">\u9ed8\u8ba4\u4e3a45<\/td>\n<td valign=\"top\" width=\"199\">\u4e3a0\u65f6\u663e\u793a\u6240\u6709\u6807\u7b7e<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"71\">format<\/td>\n<td valign=\"top\" width=\"133\">\u663e\u793a\u65b9\u5f0f<\/td>\n<td valign=\"top\" width=\"154\">flat(\u9ed8\u8ba4,\u4ee5\u7a7a\u683c\u5206\u9694)<\/td>\n<td valign=\"top\" width=\"199\">\u6216\u8005list,array<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"71\">orderby<\/td>\n<td valign=\"top\" width=\"133\">\u6309\u4f55\u503c\u6392\u5e8f<\/td>\n<td valign=\"top\" width=\"154\">name(\u9ed8\u8ba4)<\/td>\n<td valign=\"top\" width=\"199\">\u6216\u8005count<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"71\">order<\/td>\n<td valign=\"top\" width=\"133\">\u6392\u5e8f\u65b9\u5f0f<\/td>\n<td valign=\"top\" width=\"154\">ASC\u4e3a\u5347\u5e8f(\u9ed8\u8ba4)<\/td>\n<td valign=\"top\" width=\"199\">DESC\u4e3a\u964d\u5e8f,RAND\u4e3a\u968f\u673a<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"71\">exclude<\/td>\n<td valign=\"top\" width=\"133\">\u8981\u6392\u9664\u7684\u6807\u7b7e<\/td>\n<td valign=\"top\" width=\"154\"><\/td>\n<td valign=\"top\" width=\"199\"><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"71\">include<\/td>\n<td valign=\"top\" width=\"133\">\u8981\u5305\u542b\u7684\u6807\u7b7e<\/td>\n<td valign=\"top\" width=\"154\"><\/td>\n<td valign=\"top\" width=\"199\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8\u610f\u6392\u5e8f\u65b9\u5f0f\u53c2\u6570\u503c\u4e00\u5b9a\u4e3a\u5927\u5199<\/p>\n","protected":false},"excerpt":{"rendered":"<p>wordpress\u4e3b\u9898\u4e2d\u7684\u5c0f\u5de5\u5177\u4e2d\u7684\u6807\u7b7e\u4e91\u663e\u793a\u7684\u90fd\u662fpt\u5b57\u53f7\uff0c\u6211\u4eec\u5e38\u5e38\u9700\u8981\u663e\u793apx\u5355\u4f4d\u7684\u5b57\u53f7\u600e\u4e48\u505a\u5462\uff0c\u5927\u90e8\u5206\u6587...<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22780],"tags":[],"class_list":["post-393","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/posts\/393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=393"}],"version-history":[{"count":0,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/posts\/393\/revisions"}],"wp:attachment":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}