{"id":641,"date":"2015-11-06T11:47:20","date_gmt":"2015-11-06T03:47:20","guid":{"rendered":"http:\/\/zduo.me\/blog\/?p=641"},"modified":"2015-11-06T12:14:17","modified_gmt":"2015-11-06T04:14:17","slug":"smarty%e5%be%aa%e7%8e%afforeachsection%e5%ae%9e%e4%be%8b%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"http:\/\/zduo.me\/blog\/?p=641","title":{"rendered":"smarty\u5faa\u73afforeach,section\u5b9e\u4f8b\u8be6\u89e3"},"content":{"rendered":"<p>php\u91cc\u9762\u7684\u6570\u7ec4\u6216\u8005\u5bf9\u50cf\u90fd\u53ef\u4ee5\u6709for,foreach,while,list each\u6765\u5faa\u73af\u51fa\u6765\uff0csmarty\u91cc\u9762\u4e5f\u6709\u8fd9\u5957\u65b9\u6cd5\uff0c\u8981\u4e0d\u7136php\u7684\u6570\u7ec4\u5bf9\u50cf\u6570\u636e\uff0csmarty\u5c31\u4e0d\u77e5\u9053\u600e\u4e48\u628a\u663e\u793a\u51fa\u6765\u3002\u4e60\u60ef\u7684php\u91cc\u9762\u7684for,foreach,while\u7684\u7528\u6cd5\uff0c\u521a\u4e00\u5f00\u59cb\u7684\u65f6\u5019\uff0csmarty\u91cc\u9762\u5faa\u73af\u6570\u7ec4\u8001\u662f\u5fd8\uff0c\u597d\u8bb0\u6027\u4e0d\u5982\u70c2\u7b14\u5934\uff0c\u8fd8\u662f\u628a\u5b83\u8bb0\u4e0b\u6765\u624d\u662f\u6700\u597d\u7684\u3002\u4e0b\u9762\u5b9a\u754c\u53d8\u91cf\u7b26\u53f7\uff0c\u6211\u5c31\u7528\u9ed8\u8ba4\u7684\u5927\u62ec\u53f7\u4e86\u3002<br \/>\n\u4e00,foreache,foreacheelse,\/foreache\u65b9\u6cd5<br \/>\n1,\u5b83\u662fsection \u4e4b\u5916\u5904\u7406\u5faa\u73af\u7684\u53e6\u4e00\u79cd\u65b9\u6848(\u6839\u636e\u4e0d\u540c\u9700\u8981\u9009\u62e9\u4e0d\u540c\u7684\u65b9\u6848).\u7528\u4e8e\u5904\u7406\u7b80\u5355\u6570\u7ec4(\u6570\u7ec4\u4e2d\u7684\u5143\u7d20\u7684\u7c7b\u578b\u4e00\u81f4)\uff0c\u5b83\u7684\u683c\u5f0f\u6bd4 section \u7b80\u5355\u8bb8\u591a\uff0c\u7f3a\u70b9\u662f\u53ea\u80fd\u5904\u7406\u7b80\u5355\u6570\u7ec4.<br \/>\n2\uff0cforeach \u5fc5\u987b\u548c \/foreach \u6210\u5bf9\u4f7f\u7528\uff0c\u4e14\u5fc5\u987b\u6307\u5b9a from \u548c item \u5c5e\u6027.<\/p>\n<p>3\uff0cforeach\u53ef\u4ee5\u5708\u5957\u4e0d\u8fc7name\u5fc5\u987b\u4e3a\u4e00<br \/>\n4\uff0cfrom \u5f85\u5faa\u73af\u6570\u7ec4\u7684\u540d\u79f0\uff0ckey\u6570\u7ec4\u4e0b\u6807\uff0citem\u5f53\u524d\u5904\u7406\u5143\u7d20\u7684\u53d8\u91cf\u540d\u79f0,name\u8be5\u5faa\u73af\u7684\u540d\u79f0\uff0c\u7528\u4e8e\u8bbf\u95ee\u8be5\u5faa\u73af<br \/>\n5\uff0cforeachelse \u8bed\u53e5\u5728 from \u540e\u9762\u7684\u6570\u7ec4\u5bf9\u50cf\u6ca1\u6709\u503c\u7684\u65f6\u5019\u88ab\u6267\u884c.<br \/>\n\u4e8c,section,sectionelse,\/section\u65b9\u6cd5<br \/>\nsection \u7528\u4e8e\u904d\u5386\u6570\u7ec4\u4e2d\u7684\u6570\u636e. section \u6807\u7b7e\u5fc5\u987b\u6210\u5bf9\u51fa\u73b0. \u5fc5\u987b\u8bbe\u7f6e name \u548c loop \u5c5e\u6027. \u540d\u79f0\u53ef\u4ee5\u662f\u5305\u542b\u5b57\u6bcd\u3001\u6570\u5b57\u548c\u4e0b\u5212\u7ebf\u7684\u4efb\u610f\u7ec4\u5408. \u53ef\u4ee5\u5d4c\u5957\u4f46\u5fc5\u987b\u4fdd\u8bc1\u5d4c\u5957\u7684 name \u552f\u4e00. \u53d8\u91cf loop (\u901a\u5e38\u662f\u6570\u7ec4)\u51b3\u5b9a\u5faa\u73af\u6267\u884c\u7684\u6b21\u6570. \u5f53\u9700\u8981\u5728 section \u5faa\u73af\u5185\u8f93\u51fa\u53d8\u91cf\u65f6\uff0c\u5fc5\u987b\u5728\u53d8\u91cf\u540e\u52a0\u4e0a\u4e2d\u62ec\u53f7\u5305\u542b\u7740\u7684 name \u53d8\u91cf. sectionelse \u5f53 loop \u53d8\u91cf\u65e0\u503c\u65f6\u88ab\u6267\u884c.<br \/>\nsection\u91cc\u9762\u53ef\u4ee5\u5e26\u7684\u53c2\u6570\u5982\u4e0b<br \/>\n1\uff0cname\u5355\u6b21\u5faa\u73af\u7684\u540d\u79f0\uff0c\u5fc5\u987b\u6709\u7684\u9009\u9879<br \/>\n2\uff0cloop\u5faa\u73af\u7684\u53d8\u91cf\u540d\u79f0,\u5fc5\u987b\u6709\u7684\u9009\u9879<br \/>\n3\uff0cstart \u5faa\u73af\u5f00\u59cb\u7684KEY\u503c ,\u9ed8\u8ba4\u662f\u4ece\u7b2c\u4e00\u4e2a\u5f00\u59cb,<br \/>\n4\uff0cstep\u8bbe\u7f6e\u5faa\u73af\u7684\u8df3\u8dc3\u6570\uff0cstep=2\u5c06\u53ea\u904d\u5386\u4e0b\u6807\u4e3a0\u30012\u30014\u7b49\u7684\u5143\u7d20.<br \/>\n5\uff0cmax\u5faa\u73af\u7684\u6b21\u6570\uff0c\u9ed8\u8ba4\u4e3a1\uff0c<br \/>\n6\uff0cshow\u662f\u4e0d\u662f\u663e\u793a\u8be5\u5faa\u73af<br \/>\n\u4ece\u4e0a\u9762\u53c2\u6570\u4e2d\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\u6ca1\u6709\u63d0\u5230\u4e0b\u6807\uff0c\u6211\u4eec\u7ecf\u5e38\u4f1a\u7528\u5230\u6570\u7ec4\u4e0b\u6807\u3002\u4f46\u662fsmarty\u91cc\u9762\u5e26\u7684\u6709.<br \/>\n\u4e0b\u9762\u7684arrayname\u662fsection\u91cc\u9762\u7684\u5355\u6b21\u5faa\u73af\u540d\u79f0<br \/>\na\uff0c$smarty.section.arrayname.index \u6570\u7ec4\u4e0b\u6807\uff0c\u6839foreach \u7684key\u5dee\u4e0d\u591a<br \/>\nb\uff0c$smarty.section.arrayname.index_prev \u4e0a\u6b21\u5faa\u73af\u7684\u4e0b\u6807 \u6839$smarty.section.arrayname.loop\u5dee\u4e0d\u591a<br \/>\nc\uff0c$smarty.section.arrayname.index_next \u4e0b\u6b21\u5faa\u73af\u7684\u4e0b\u6807<br \/>\nd\uff0c$smarty.section.arrayname.iteration \u7b2c\u51e0\u6b21\u5faa\u73af\u4e86 \u6839rownum\u4e00\u6837<br \/>\ne\uff0c$smarty.section.arrayname.first \u7b2c\u4e00\u6b21\u5faa\u73af<br \/>\nf\uff0c$smarty.section.arrayname.last \u6700\u540e\u4e00\u6b21\u5faa\u73af<br \/>\ng\uff0c$smarty.section.arrayname.show \u5faa\u73af\u662f\u5426\u663e\u793a<br \/>\nh\uff0c$smarty.section.arrayname.total \u603b\u5171\u5faa\u73af\u4e86\u591a\u5c11\u6b21<br \/>\nsection\u5f97\u5230\u6570\u7ec4\u5bf9\u50cf\u91cc\u9762\u7684\u503c<br \/>\n{section name=arrayname loop=$array}<br \/>\n{$array[arrayname.index]} \uff0c{$array[arrayname]}\u4e8c\u8005\u662f\u7b49\u4ef7\u7684\uff0c\u7531\u8d77\u53ef\u89c1\uff0c\u6709\u4e86\u4e0a\u9762\u7684a-h\u662f\u591a\u4e48\u7684\u91cd\u8981<br \/>\n\u4e09\uff0c\u5e94\u7528\u4e3e\u4f8b<br \/>\n1\uff0c\u4e00\u7ef4\u6570\u7ec4<\/p>\n<pre name=\"code\" class=\"php\">\r\narray (  \r\n   \"0\" => 'home',  \r\n   '1' => 'who',  \r\n   '2'=> 'tank',  \r\n   '3'=> 'what'  \r\n  );  \r\n$this->tpl->assign(\"onearray\", $this->onearray);  \r\n<\/pre>\n<p>a\uff09\uff0cforeach\u6765\u8bfb\u53d6<\/p>\n<pre name=\"code\" class=\"php\">\r\n{foreach from=$onearray kkey=k item=value }  \r\n \u4e00\u7ef4key={$k}  \u4e00\u7ef4value={$value}<br \/>  \r\n{foreachelse}  \r\n nothing  \r\n{\/foreach} \r\n<\/pre>\n<p>\u663e\u793a\u7684\u7ed3\u679c\u662f<br \/>\n\u4e00\u7ef4key=0 \u4e00\u7ef4value=home<br \/>\n\u4e00\u7ef4key=1 \u4e00\u7ef4value=who<br \/>\n\u4e00\u7ef4key=2 \u4e00\u7ef4value=tank<br \/>\n\u4e00\u7ef4key=3 \u4e00\u7ef4value=what<br \/>\nb\uff09\uff0csection\u6765\u8bfb\u53d6<\/p>\n<pre name=\"code\" class=\"php\">\r\n{section name=one loop=$onearray start=0 step=1}  \r\n index={$smarty.section.one.index},  \r\n index_prev={$smarty.section.one.index_prev},  \r\n index_next={$smarty.section.one.index_next},  \r\n first={$smarty.section.one.first},  \r\n last={$smarty.section.one.last},  \r\n iteration ={$smarty.section.one.iteration},  \r\n total={$smarty.section.one.total},  \r\n value={$onearray[one]}<br \/>  \r\n{sectionelse}  \r\n nothing  \r\n{\/section} \r\n<\/pre>\n<p>\u663e\u793a\u7684\u7ed3\u679c\u662f<br \/>\nindex=0, index_prev=-1, index_next=1, first=1, last=, iteration =1, total=4, value=home<br \/>\nindex=1, index_prev=0, index_next=2, first=, last=, iteration =2, total=4, value=who<br \/>\nindex=2, index_prev=1, index_next=3, first=, last=, iteration =3, total=4, value=tank<br \/>\nindex=3, index_prev=2, index_next=4, first=, last=1, iteration =4, total=4, value=what<br \/>\n2\uff0c\u4e8c\u7ef4\u6570\u7ec4<\/p>\n<pre name=\"code\" class=\"php\">\r\narray (  \r\n   \"test\" => 'home',  \r\n   '2' => 'who',  \r\n   array (  \r\n    \"\u4e0a\u6d77\",  \r\n    \"born\" => \"\u5b89\u5fbd\",  \r\n    \"name\" => \"\u6d77\u5e95\u82cd\u9e70\"  \r\n   ),  \r\n   array (  \r\n    \"1583456\",  \r\n    \"fax\" => \"12345678\",  \r\n    \"cell\" => \"13256478414\"  \r\n   )  \r\n  );  \r\n$this->tpl->assign(\"twoarray\", $this->twoarray);  \r\n<\/pre>\n<p>a\uff09\uff0cforeach<\/p>\n<pre name=\"code\" class=\"php\">\r\n{foreach from=$twoarray kkey=k item=value }  \r\n {if is_array($value)}  \r\n  {foreach from=$value key=tk item=tv }  \r\n   \u4e8c\u7ef4tkey={$tk}  \u4e8c\u7ef4value={$tv}<br \/>  \r\n  {foreachelse}  \r\n   \u4e8c\u7ef4\u6570\u7ec4\u4e3a\u7a7a  \r\n  {\/foreach}  \r\n {else}  \r\n  \u4e00\u7ef4key={$k}  \u4e00\u7ef4value={$value}<br \/>  \r\n {\/if}  \r\n  \r\n{foreachelse}  \r\n nothing  \r\n{\/foreach}  \r\n<\/pre>\n<p>\u663e\u793a\u7ed3\u679c\u5982\u4e0b\uff1a<br \/>\n\u4e00\u7ef4key=test \u4e00\u7ef4value=home<br \/>\n\u4e00\u7ef4key=2 \u4e00\u7ef4value=who<br \/>\n\u4e8c\u7ef4tkey=0 \u4e8c\u7ef4value=\u4e0a\u6d77<br \/>\n\u4e8c\u7ef4tkey=born \u4e8c\u7ef4value=\u5b89\u5fbd<br \/>\n\u4e8c\u7ef4tkey=name \u4e8c\u7ef4value=\u6d77\u5e95\u82cd\u9e70<br \/>\n\u4e8c\u7ef4tkey=0 \u4e8c\u7ef4value=1583456<br \/>\n\u4e8c\u7ef4tkey=fax \u4e8c\u7ef4value=12345678<br \/>\n\u4e8c\u7ef4tkey=cell \u4e8c\u7ef4value=13256478414<br \/>\nb\uff09\uff0csection<\/p>\n<pre name=\"code\" class=\"php\">\r\n{section loop=$twoarray name=two }  \r\n {if is_array($twoarray[two])}  \r\n  {section loop=$twoarray[two] name=aaa }  \r\n   \u4e8c\u7ef4tkey={$smarty.section.aaa.index}  \u4e8c\u7ef4value={$twoarray[two][aaa]}<br \/>  \r\n  {sectionelse}  \r\n   \u4e8c\u7ef4\u6570\u7ec4\u4e3a\u7a7a  \r\n  {\/section}  \r\n {else}  \r\n  \u4e00\u7ef4key={$smarty.section.two.index}  \u4e00\u7ef4value={$twoarray[two]}<br \/>  \r\n {\/if}  \r\n{sectionelse}  \r\n nothing  \r\n{\/section} \r\n<\/pre>\n<p>\u663e\u793a\u7ed3\u679c\u5982\u4e0b\uff1a<br \/>\n\u4e00\u7ef4key=0 \u4e00\u7ef4value=<br \/>\n\u4e00\u7ef4key=1 \u4e00\u7ef4value=<br \/>\n\u4e00\u7ef4key=2 \u4e00\u7ef4value=who<br \/>\n\u4e8c\u7ef4tkey=0 \u4e8c\u7ef4value=\u4e0a\u6d77<br \/>\n\u4e8c\u7ef4tkey=1 \u4e8c\u7ef4value=<br \/>\n\u4e8c\u7ef4tkey=2 \u4e8c\u7ef4value=<br \/>\n\u5982\u679c\u662f\u4e00\u7ef4\u6570\u7ec4\uff0c\u5e76\u4e14\u5e26\u6709\u4e0b\u6807\u7684\u8bdd\uff0c\u5e76\u4e14\u4e0d\u662f\u63090,1,2\u8fd9\u6837\u7684\u987a\u5e8f\u7684\u8bdd\u5c31\u53d6\u4e0d\u5230\u4e1c\u897f\u3002\u8fd9\u4e2a\u80fd\u4e0d\u80fd\u7406\u89e3\u6210foreach\u5b58\u5728\u7684\u7406\u7531\u3002\u4e0d\u8fc7\u4e00\u822c\u4ece\u6570\u636e\u5e93\u53d6\u6570\u636e\u90fd\u662f\u4e8c\u7ef4\u6570\u7ec4\uff0c\u5e76\u4e14\u5916\u5c42\u90fd\u662f\u4ee50\u5f00\u59cb\u7684\u3002\u770b\u4e0b\u9762\u7684\u8fd9\u4e2a\u4f8b\u5b50<\/p>\n<pre name=\"code\" class=\"php\">\r\narray (  \r\n array (  \r\n  'name' => 'tank',  \r\n  'sex' => '\u7537',  \r\n  'old' => '28'  \r\n ),  \r\n array (  \r\n  'name' => 'joyce',  \r\n  'sex' => '\u5973',  \r\n  'old' => '111'  \r\n )  \r\n);  \r\n<\/pre>\n<p>section\u5faa\u73af<\/p>\n<pre name=\"code\" class=\"php\">\r\n{section loop=$twoarray name=two}  \r\n name={$twoarray[two].name},sex={$twoarray[two].sex},old={$twoarray[two].old}<br \/>  \r\n{sectionelse}  \r\n nothing  \r\n{\/section} \r\n<\/pre>\n<p>\u663e\u793a\u7ed3\u679c<br \/>\nname=tank,sex=\u7537,old=28<br \/>\nname=joyce,sex=\u5973,old=111<br \/>\n5<\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e<br \/>\n\u4f5c\u8005:\u6d77\u5e95\u82cd\u9e70<br \/>\n\u5730\u5740:http:\/\/blog.51yip.com\/smarty\/903.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>php\u91cc\u9762\u7684\u6570\u7ec4\u6216\u8005\u5bf9\u50cf\u90fd\u53ef\u4ee5\u6709for,foreach,while,list each\u6765\u5faa\u73af\u51fa\u6765\uff0csmarty\u91cc\u9762\u4e5f\u6709\u8fd9\u5957\u65b9\u6cd5\uff0c\u8981\u4e0d\u7136php\u7684\u6570\u7ec4\u5bf9\u50cf\u6570\u636e\uff0csmarty\u5c31\u4e0d\u77e5\u9053\u600e\u4e48\u628a\u663e\u793a\u51fa\u6765\u3002\u4e60\u60ef\u7684php\u91cc\u9762\u7684for,foreach,while\u7684\u7528\u6cd5\uff0c\u521a\u4e00\u5f00\u59cb\u7684\u65f6\u5019\uff0csmarty\u91cc\u9762\u5faa\u73af\u6570\u7ec4\u8001\u662f\u5fd8\uff0c\u597d\u8bb0\u6027\u4e0d\u5982\u70c2\u7b14\u5934\uff0c\u8fd8\u662f\u628a\u5b83\u8bb0\u4e0b\u6765\u624d\u662f\u6700\u597d\u7684\u3002\u4e0b\u9762\u5b9a\u754c\u53d8\u91cf\u7b26\u53f7\uff0c\u6211\u5c31\u7528\u9ed8\u8ba4\u7684\u5927\u62ec\u53f7\u4e86\u3002 \u4e00,foreache,foreacheelse,\/foreache\u65b9\u6cd5 1,\u5b83\u662fsection \u4e4b\u5916\u5904\u7406\u5faa\u73af\u7684\u53e6\u4e00\u79cd\u65b9\u6848(\u6839\u636e\u4e0d\u540c\u9700\u8981\u9009\u62e9\u4e0d\u540c\u7684\u65b9\u6848).\u7528\u4e8e\u5904\u7406\u7b80\u5355\u6570\u7ec4(\u6570\u7ec4\u4e2d\u7684\u5143\u7d20\u7684\u7c7b\u578b\u4e00\u81f4)\uff0c\u5b83\u7684\u683c\u5f0f\u6bd4 section \u7b80\u5355\u8bb8\u591a\uff0c\u7f3a\u70b9\u662f\u53ea\u80fd\u5904\u7406\u7b80\u5355\u6570\u7ec4. 2\uff0cforeach \u5fc5\u987b\u548c \/foreach \u6210\u5bf9\u4f7f\u7528\uff0c\u4e14\u5fc5\u987b\u6307\u5b9a from \u548c item \u5c5e\u6027. 3\uff0cforeach\u53ef\u4ee5\u5708\u5957\u4e0d\u8fc7name\u5fc5\u987b\u4e3a\u4e00 4\uff0cfrom \u5f85\u5faa\u73af\u6570\u7ec4\u7684\u540d\u79f0\uff0ckey\u6570\u7ec4\u4e0b\u6807\uff0citem\u5f53\u524d\u5904\u7406\u5143\u7d20\u7684\u53d8\u91cf\u540d\u79f0,name\u8be5\u5faa\u73af\u7684\u540d\u79f0\uff0c\u7528\u4e8e\u8bbf\u95ee\u8be5\u5faa\u73af 5\uff0cforeachelse \u8bed\u53e5\u5728 from \u540e\u9762\u7684\u6570\u7ec4\u5bf9\u50cf\u6ca1\u6709\u503c\u7684\u65f6\u5019\u88ab\u6267\u884c. \u4e8c,section,sectionelse,\/section\u65b9\u6cd5 section \u7528\u4e8e\u904d\u5386\u6570\u7ec4\u4e2d\u7684\u6570\u636e. section \u6807\u7b7e\u5fc5\u987b\u6210\u5bf9\u51fa\u73b0. \u5fc5\u987b\u8bbe\u7f6e name \u548c loop \u5c5e\u6027. \u540d\u79f0\u53ef\u4ee5\u662f\u5305\u542b\u5b57\u6bcd\u3001\u6570\u5b57\u548c\u4e0b\u5212\u7ebf\u7684\u4efb\u610f\u7ec4\u5408. \u53ef\u4ee5\u5d4c\u5957\u4f46\u5fc5\u987b\u4fdd\u8bc1\u5d4c\u5957\u7684 name \u552f\u4e00. \u53d8\u91cf loop (\u901a\u5e38\u662f\u6570\u7ec4)\u51b3\u5b9a\u5faa\u73af\u6267\u884c\u7684\u6b21\u6570. \u5f53\u9700\u8981\u5728 &hellip; <a href=\"http:\/\/zduo.me\/blog\/?p=641\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[143,144,142,145],"_links":{"self":[{"href":"http:\/\/zduo.me\/blog\/index.php?rest_route=\/wp\/v2\/posts\/641"}],"collection":[{"href":"http:\/\/zduo.me\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zduo.me\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zduo.me\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zduo.me\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=641"}],"version-history":[{"count":4,"href":"http:\/\/zduo.me\/blog\/index.php?rest_route=\/wp\/v2\/posts\/641\/revisions"}],"predecessor-version":[{"id":645,"href":"http:\/\/zduo.me\/blog\/index.php?rest_route=\/wp\/v2\/posts\/641\/revisions\/645"}],"wp:attachment":[{"href":"http:\/\/zduo.me\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zduo.me\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=641"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zduo.me\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}