{"id":4324,"date":"2021-01-18T11:39:46","date_gmt":"2021-01-18T03:39:46","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=4324"},"modified":"2021-01-18T11:39:46","modified_gmt":"2021-01-18T03:39:46","slug":"%e7%bb%87%e6%a2%a6dedecms%e6%a0%87%e7%ad%betag%e5%88%97%e8%a1%a8%e9%a1%b5%e6%9c%89%e5%88%86%e9%a1%b5%e9%a1%b5%e7%a0%81%e4%bd%86%e6%b2%a1%e6%95%b0%e6%8d%ae%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/4324.html","title":{"rendered":"\u7ec7\u68a6DEDECMS\u6807\u7b7eTAG\u5217\u8868\u9875\u6709\u5206\u9875\u9875\u7801,\u4f46\u6ca1\u6570\u636e\u7684\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"

\u6700\u8fd1\u68c0\u67e5TAG\u6807\u7b7e\u65f6\u53d1\u73b0\uff0c\u6709\u7684TAG\u6807\u7b7e\u6253\u5f00\u540e\uff0c\u5217\u8868\u91cc\u9762\u6ca1\u6709\u6570\u636e\uff0c\u4f46\u4e0b\u9762\u5206\u9875\u4ee3\u7801\u5374\u8fd8\u5728\uff0c\u539f\u6765TAG\u6807\u7b7e\u5173\u8054\u8fc7\u5f88\u591a\u5df2\u7ecf\u5220\u9664\u7684\u6587\u6863\uff0c\u5728TAG\u6807\u7b7e\u5217\u8868\u9875\u5c31\u4f1a\u51fa\u73b0\u6709\u9875\u7801\u5206\u9875\u6ca1\u6709\u6570\u636e\u7684\u60c5\u51b5\uff0c\u8fd9\u662f\u56e0\u4e3a\u7ec7\u68a6\u7684TAG\u6807\u7b7e\u5217\u8868\u6838\u5fc3\u6587\u4ef6\u4e0d\u4e25\u8c28\u5f15\u8d77\u7684\uff0c\u6211\u4eec\u53ef\u4ee5\u8ba9\u5173\u8054\u7684TAG\u6807\u7b7e\u6240\u5c5e\u7684\u5df2\u7ecf\u5220\u9664\u7684\u6587\u6863\u5728TAG\u8868\u4e2d\u5220\u9664\u6389\u5c31\u80fd\u89e3\u51b3\u7a7a\u6570\u636e\u5217\u8868\u95ee\u9898\u3002<\/p>\n

\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n

\u6253\u5f00 \/include\/arc.taglist.class.php \u641c\u7d22<\/p>\n

 \/\/\u66f4\u65b0Tag\u4fe1\u606f<\/code><\/pre>\n

\u5927\u6982\u5728 137\u884c\u5de6\u53f3\uff0c\u628a\u5b83\u4e0a\u9762\u7684\u8fd93\u884c\u4ee3\u7801<\/p>\n

$cquery = \"SELECT COUNT(*) AS dd FROM `#@__taglist` WHERE tid = '{$this->TagInfos['id']}' AND arcrank >-1 \";\r\n$row = $this->dsql->GetOne($cquery);\r\n$this->TotalResult = $row['dd'];<\/code><\/pre>\n

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

\u4fee\u6539\u4e3a\uff1a<\/p>\n

$this->dsql->SetQuery(\"SELECT aid FROM `#@__taglist` WHERE tid = '{$this->TagInfos['id']}' AND arcrank>-1 \");\r\n$this->dsql->Execute();\r\nwhile($row=$this->dsql->GetArray())\r\n{\r\n\t$atrow = $this->dsql->GetOne(\"SELECT id FROM `#@__arctiny` WHERE id='{$row['aid']}' AND arcrank>-1\");\r\n\tif(!is_array($atrow))\r\n\t{\r\n\t\t$this->dsql->ExecuteNoneQuery(\"DELETE FROM `#@__taglist` WHERE aid='{$row['aid']}' \");\r\n\t\tcontinue;\r\n\t}\r\n\t$idlists .= ($idlists=='' ? $row['aid'] : ','.$row['aid']);\r\n}\r\nif($idlists!=='') $this->TotalResult = $row['dd'] = count(explode(',',$idlists));<\/code><\/pre>\n

\u89e3\u51b3\u3002<\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

\u6700\u8fd1\u68c0\u67e5TAG\u6807\u7b7e\u65f6\u53d1\u73b0\uff0c\u6709\u7684TAG\u6807\u7b7e\u6253\u5f00\u540e\uff0c\u5217\u8868\u91cc\u9762\u6ca1\u6709\u6570\u636e\uff0c\u4f46\u4e0b\u9762\u5206\u9875\u4ee3\u7801\u5374\u8fd8\u5728\uff0c\u539f\u6765TAG\u6807\u7b7e\u5173\u8054\u8fc7\u5f88 […]<\/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":[43,1382,1384,1383,180],"class_list":["post-4324","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-tag","tag-1384","tag-1383","tag-180"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/4324","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=4324"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/4324\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=4324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=4324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=4324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}