{"id":5715,"date":"2025-01-06T14:38:27","date_gmt":"2025-01-06T06:38:27","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=5715"},"modified":"2025-01-06T14:57:20","modified_gmt":"2025-01-06T06:57:20","slug":"%e7%bb%87%e6%a2%a6cms%e5%a6%82%e4%bd%95%e8%8e%b7%e5%8f%96%e5%bd%93%e5%89%8d%e6%96%87%e7%ab%a0%e7%9a%84url%e5%9c%b0%e5%9d%80","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/5715.html","title":{"rendered":"\u7ec7\u68a6CMS\u5982\u4f55\u83b7\u53d6\u5f53\u524d\u6587\u7ae0\u7684URL\u5730\u5740"},"content":{"rendered":"
\u5728\u7ec7\u68a6CMS\u4e2d\uff0c\u83b7\u53d6\u5f53\u524d\u6587\u7ae0\u7684URL\u5730\u5740\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528\u7cfb\u7edf\u63d0\u4f9b\u7684\u53d8\u91cf\u548c\u51fd\u6570\u6765\u5b9e\u73b0\u3002\u901a\u5e38\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u6765\u83b7\u53d6\u5f53\u524d\u6587\u7ae0\u7684URL\uff1a<\/p>\n
\u5728\u4f60\u7684\u6a21\u677f\u6587\u4ef6\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 \u5982\u679c\u4f60\u5728\u4f7f\u7528PHP\u4ee3\u7801\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u83b7\u53d6\u5f53\u524d\u6587\u7ae0\u7684URL\uff1a<\/p>\n \u7ec7\u68a6CMS\u5728\u5904\u7406\u6587\u7ae0\u65f6\uff0c\u4f1a\u5728\u5168\u5c40\u53d8\u91cf\u4e2d\u5b58\u50a8\u5f53\u524d\u6587\u7ae0\u7684\u4fe1\u606f\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u8fd9\u4e9b\u53d8\u91cf\u3002\u4f8b\u5982\uff1a<\/p>\n \u5185\u5bb9\u9875\u7528{dede:field.arcurl\/}\u8c03\u7528<\/p>\n \u4ee5\u4e0a\u65b9\u6cd5\u53ef\u4ee5\u6839\u636e\u4f60\u7684\u5177\u4f53\u9700\u6c42\u548c\u4f7f\u7528\u573a\u666f\u9009\u62e9\u4f7f\u7528\u3002\u786e\u4fdd\u5728\u5408\u9002\u7684\u6a21\u677f\u6216PHP\u6587\u4ef6\u4e2d\u8c03\u7528\u8fd9\u4e9b\u4ee3\u7801\uff0c\u4ee5\u83b7\u53d6\u6b63\u786e\u7684\u6587\u7ae0URL\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u5728\u7ec7\u68a6CMS\u4e2d\uff0c\u83b7\u53d6\u5f53\u524d\u6587\u7ae0\u7684URL\u5730\u5740\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528\u7cfb\u7edf\u63d0\u4f9b\u7684\u53d8\u91cf\u548c\u51fd\u6570\u6765\u5b9e\u73b0\u3002\u901a\u5e38\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u6765\u83b7\u53d6 […]<\/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":[1767,180,1768],"class_list":["post-5715","post","type-post","status-publish","format-standard","hentry","category-web","tag-1767","tag-180","tag-url"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5715","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=5715"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5715\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=5715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=5715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=5715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}{dede:field.url\/}<\/code>\u6807\u7b7e\u6765\u83b7\u53d6\u5f53\u524d\u6587\u7ae0\u7684URL\u3002\u4f8b\u5982\uff1a<\/p>\n
<a href=\"{dede:field.url\/}\">\u67e5\u770b\u5f53\u524d\u6587\u7ae0<\/a>\r\n<\/code><\/pre>\n
\u901a\u8fc7PHP\u4ee3\u7801\u83b7\u53d6<\/strong>\uff1a<\/h2>\n
\/\/ \u83b7\u53d6\u5f53\u524d\u6587\u7ae0\u7684ID\r\n$arcID = $GLOBALS['arcID'];\r\n\/\/ \u4f7f\u7528DedeCMS\u63d0\u4f9b\u7684\u51fd\u6570\u83b7\u53d6\u6587\u7ae0\u7684URL\r\n$url = GetOneArchive($arcID);\r\necho $url;\r\n<\/code><\/pre>\n<\/div>\n<\/div>\n
\u4f7f\u7528\u5168\u5c40\u53d8\u91cf<\/strong>\uff1a<\/h2>\n
echo $GLOBALS['arcUrl']; \/\/ \u8f93\u51fa\u5f53\u524d\u6587\u7ae0\u7684URL\r\n<\/code><\/pre>\n