\u7ec7\u68a6\u8c03\u7528\u6807\u7b7e<\/a>{dede:field.typename\/}\u662f\u53ef\u4ee5\u83b7\u53d6\u5f53\u524d\u680f\u76ee\u9875\u4e0a\u4e00\u7ea7\u680f\u76ee\u7684\u540d\u79f0\uff0c\u4f46\u5982\u4f55\u83b7\u53d6\u5f53\u524d\u680f\u76ee\u7684\u9876\u7ea7\u680f\u76ee\u540d\u79f0\u5462\uff1f\u901a\u8fc7\u4e0b\u9762\u65b9\u6cd5\u5c31\u53ef\u4ee5\u5b9e\u73b0\u3002<\/p>\n\u6253\u5f00\/include\/extend.func.php\uff0c\u5728\u6700\u5e95\u90e8\u52a0\u5165\u4e0b\u9762\u4ee3\u7801\uff1a<\/p>\n
\/\/\u83b7\u53d6\u9876\u7ea7\u680f\u76ee\u540d\u79f0\r\nfunction GetTopTypename($id)\r\n{\r\nglobal $dsql;\r\n$row = $dsql->GetOne(\"SELECT typename,topid FROM dede_arctype WHERE id= $id\");\r\nif ($row['topid'] == '0')\r\n{\r\nreturn $row['typename'];\r\n}\r\nelse\r\n{\r\n$row1 = $dsql->GetOne(\"SELECT typename FROM dede_arctype WHERE id= $row[topid]\");\r\nreturn $row1['typename'];\r\n}\r\n}\r\n<\/code><\/pre>\n\u7528\u5728\u9700\u8981\u8c03\u7528\u7684\u5730\u5740\u7528\u4e0b\u9762\u8c03\u7528\u6807\u7b7e\u5373\u53ef\u8c03\u7528\u51fa\u5f53\u524d\u9876\u7ea7\u680f\u76ee\u540d\u79f0\uff1a<\/p>\n
{dede:field.typeid function=getredtype(@me,typename)\/}\r\n<\/code><\/pre>\n <\/p>\n
<\/p>\n","protected":false},"excerpt":{"rendered":"
\u6211\u4eec\u77e5\u9053\u7ec7\u68a6\u8c03\u7528\u6807\u7b7e{dede:field.typename\/}\u662f\u53ef\u4ee5\u83b7\u53d6\u5f53\u524d\u680f\u76ee\u9875\u4e0a\u4e00\u7ea7\u680f\u76ee\u7684\u540d\u79f0\uff0c\u4f46\u5982\u4f55\u83b7 […]<\/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":[649,1677,180],"class_list":["post-5212","post","type-post","status-publish","format-standard","hentry","category-web","tag-649","tag-1677","tag-180"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5212","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=5212"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5212\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=5212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=5212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=5212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}