{"id":1185,"date":"2019-10-21T23:23:15","date_gmt":"2019-10-21T15:23:15","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=1185"},"modified":"2019-11-16T15:22:00","modified_gmt":"2019-11-16T07:22:00","slug":"dedecms%e7%bb%87%e6%a2%a6%e9%a6%96%e9%a1%b5%e5%88%97%e8%a1%a8%e9%a1%b5%e8%b0%83%e7%94%a8%e5%bd%93%e5%89%8d%e6%96%87%e7%ab%a0tag","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/1185.html","title":{"rendered":"DEDECMS\u7ec7\u68a6\u9996\u9875\u5217\u8868\u9875\u8c03\u7528\u5f53\u524d\u6587\u7ae0TAG"},"content":{"rendered":"
DEDECMS\u7ec7\u68a6\u9996\u9875\u5217\u8868\u9875\u8c03\u7528\u5f53\u524d\u6587\u7ae0\u7684TAG\uff0c<\/p>\n
\/**\r\n * \u9996\u9875\/\u5217\u8868\u83b7\u53d6\u6587\u7ae0Tag\r\n *\r\n * @access public\r\n * @param string $aid \t\u6587\u7ae0id\r\n * @param string $num \t\u6570\u91cf\r\n * @return string\r\n *\/\r\nif (!function_exists('GetMyTags'))\r\n{\r\n\tfunction GetMyTags($aid, $num=3)\r\n\t{\r\n\t\tglobal $dsql;\r\n\t\t$tags = '';\r\n\t\t$query = \"Select tag From `#@__taglist` Where aid='$aid' limit $num \";\r\n\t\t$dsql->Execute('tag',$query);\r\n\t\twhile($row = $dsql->GetArray('tag'))\r\n\t\t{\r\n\t\t\t$tags.= ($tags=='' ? \"<a href=\/tags.php?\/{$row['tag']} rel='tag'>{$row['tag']}<\/a>\" : ','.\"<a href=\/tags.php?\/{$row['tag']} rel='tag'>{$row['tag']}<\/a>\"); \r\n\t\t}\r\n\t\treturn $tags;\r\n\t}\r\n}<\/code><\/pre>\n\u524d\u53f0\u6a21\u677f\u8c03\u7528\u65b9\u6cd5<\/h2>\n[field:id function=GetMyTags(@me,5)\/]<\/code><\/pre>\n\u6570\u5b575\u00a0\u662f\u8c03\u75285\u4e2atag<\/p>\n
\u6ce8\u610f\uff0c\u4e0a\u9762\u7684\u8c03\u7528\u51fa\u6765\u7684TAG\u5730\u5740\u683c\u5f0f\u662f\u00a0 \/tags.php?\/\u6563\u6587\u00a0 \u00a0 \uff0c\u5982\u679c\u4f60\u7684TAG\u4f2a\u9759\u6001\u5730\u5740\u683c\u5f0f\u50cf \/tags\/\u6563\u6587.html \u8fd9\u79cd\u683c\u5f0f\u7684\uff0c\u5c31\u9700\u8981\u7528\u4e0b\u9762\u8fd9\u6bb5\u4ee3\u7801\uff0c\u6ce8\u610f\u7ea2\u8272\u7684\u4fee\u6539\u90e8\u5206\u3002<\/p>\n
\/**\r\n * \u9996\u9875\/\u5217\u8868\u83b7\u53d6\u6587\u7ae0Tag\r\n *\r\n * @access public\r\n * @param string $aid \t\u6587\u7ae0id\r\n * @param string $num \t\u6570\u91cf\r\n * @return string\r\n *\/\r\nif (!function_exists('GetMyTags'))\r\n{\r\n\tfunction GetMyTags($aid, $num=3)\r\n\t{\r\n\t\tglobal $dsql;\r\n\t\t$tags = '';\r\n\t\t$query = \"Select tag From `#@__taglist` Where aid='$aid' limit $num \";\r\n\t\t$dsql->Execute('tag',$query);\r\n\t\twhile($row = $dsql->GetArray('tag'))\r\n\t\t{\r\n\t\t\t$tags.= ($tags=='' ? \"<a href=\/tags\/{$row['tag']}.html<\/span> rel='tag'>{$row['tag']}<\/a>\" : ','.\"<a href=\/tags\/{$row['tag']}.html<\/span> rel='tag'>{$row['tag']}<\/a>\"); \r\n\t\t}\r\n\t\treturn $tags;\r\n\t}\r\n}<\/code><\/pre>\n <\/p>\n","protected":false},"excerpt":{"rendered":"
DEDECMS\u7ec7\u68a6\u9996\u9875\u5217\u8868\u9875\u8c03\u7528\u5f53\u524d\u6587\u7ae0\u7684TAG\uff0c \u6548\u679c\u5982\u4e0b\u56fe\u6240\u793a\uff1a \u6253\u5f00 \\include\\extend.f […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[43,340,339,338],"class_list":["post-1185","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-tag","tag-339","tag-338"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1185","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=1185"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1185\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}