{"id":1375,"date":"2017-11-23T10:38:38","date_gmt":"2017-11-23T02:38:38","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=1375"},"modified":"2017-11-23T10:38:38","modified_gmt":"2017-11-23T02:38:38","slug":"%e7%bb%87%e6%a2%a6dedecms%e9%87%87%e9%9b%86%e6%96%87%e7%ab%a0%e6%97%b6%e4%b8%8d%e8%83%bd%e9%87%87%e9%9b%86%e7%94%9f%e6%88%90tag%e5%8f%8a%e6%8f%8f%e8%bf%b0%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/1375.html","title":{"rendered":"\u7ec7\u68a6dedecms\u91c7\u96c6\u6587\u7ae0\u65f6\u4e0d\u80fd\u91c7\u96c6\u751f\u6210TAG\u53ca\u63cf\u8ff0\u7684\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"

\u7ec7\u68a6dedecms\u9ed8\u8ba4\u7684\u91c7\u96c6\u529f\u80fd\u53ea\u80fd\u91c7\u96c6\u5230keywords\uff0c\u4e0d\u80fd\u751f\u6210tags\u6807\u7b7e\uff0c\u91c7\u96c6\u56de\u6765\u7684\u63cf\u8ff0\u8fd9\u9879\u4e5f\u662f\u7a7a\u7684\uff0c\u9700\u8981\u518d\u7f16\u8f91\u4e00\u4e0b\u624d\u80fd\u751f\u6210description\u5185\u5bb9\u3002<\/p>\n

\u4e0b\u9762\u4ecb\u7ecd\u4e00\u4e0b\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n

\u9996\u5148\u6253\u5f00\u540e\u53f0\u7ba1\u7406\u76ee\u5f55\u7684co_export.php\u6587\u4ef6\uff0c\u5728\u5927\u6982\u7b2c183\u884c\u7684\u4f4d\u7f6e\u627e\u5230\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n

else if($itemName == 'litpic')\r\n            {\r\n                $litpic = trim($ctag->GetInnerText());\r\n            }<\/code><\/pre>\n

\u5728\u5176\u4e0b\u9762\u63d2\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n

else if($itemName == 'keywords')\r\n            {\r\n                $keywords = trim($ctag->GetInnerText());\r\n            }\r\n            else if($itemName == 'body')\r\n            {\r\n                $body = trim($ctag->GetInnerText());\r\n                $description = cn_substr(html2text($body),150);\r\n                $description = str_replace('\u3000','',$description);\r\n                $description = addslashes($description);\r\n            }<\/code><\/pre>\n

\u7136\u540e\u518d\u627e\u5230\u5982\u4e0b\u4ee3\u7801<\/p>\n

$mainSql = str_replace('@sortrank@', $sortrank, $mainSql);<\/code><\/pre>\n

\u5728\u5176\u4e0b\u9762\u63d2\u5165\u4e0b\u9762\u8fd9\u53e5\uff1a<\/p>\n

$mainSql = str_replace('@description@', $description, $mainSql);<\/code><\/pre>\n

\u518d\u627e\u5230\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n

$rs = $dsql->ExecuteNoneQuery($mainSql);<\/code><\/pre>\n

\u5728\u5176\u4e0b\u9762\u63d2\u5165\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n

$tags = InsertTags($keywords, $aid);<\/code><\/pre>\n

 <\/p>\n

\u4fee\u6539\u5b8c\u6210\u540e\u4fdd\u5b58\u5373\u53ef\u3002<\/p>\n

\u8fd9\u6837\u5c31\u4f1a\u5728\u91c7\u96c6\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u539f\u7f51\u9875\u4e0a\u6709keywords\uff0c\u91c7\u96c6\u5e76\u5bfc\u5165\u6570\u636e\u540e\uff0c\u5c31\u4f1a\u81ea\u52a8\u5199\u5165TAG\uff0c\u5982\u679c\u672c\u6765\u6ca1\u6709keywords\uff0c\u5c31\u7559\u7a7a\u3002description\u7684\u8bdd\u4e0d\u7ba1\u539f\u7f51\u9875\u6709\u6ca1\u6709\uff0c\u90fd\u6309\u91c7\u96c6\u56de\u6765\u7684\u6b63\u6587\u81ea\u52a8\u751f\u6210\u7eaf\u6587\u672c\uff0c\u4e0d\u7528\u62c5\u5fc3\u5939\u6742\u4e71\u7801\u6216\u8005\u539f\u7f51\u9875\u4e71\u4e03\u516b\u7cdf\u7684\u5185\u5bb9\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u7ec7\u68a6dedecms\u9ed8\u8ba4\u7684\u91c7\u96c6\u529f\u80fd\u53ea\u80fd\u91c7\u96c6\u5230keywords\uff0c\u4e0d\u80fd\u751f\u6210tags\u6807\u7b7e\uff0c\u91c7\u96c6\u56de\u6765\u7684\u63cf\u8ff0\u8fd9\u9879\u4e5f\u662f\u7a7a\u7684\uff0c […]<\/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,410,409,180,411,408],"class_list":["post-1375","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-description","tag-tag","tag-180","tag-411","tag-408"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1375","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=1375"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1375\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}