织梦调用文章关键词的标签
1、织梦dedecms在正文页面显示关键词标签的方法如下:
{dede:field name=’keywords’ runphp=’yes’ }
if(!empty(@me)){
$kws = explode(’ ‘,@me);
@me = “”;
foreach($kws as $k){
@me .= “<a href=’/plus/search.php?keyword=”.urlencode($k).”‘ target=_blank >$k</a> “;
}
@me= str_replace(’ ', ‘ ‘,trim(@me));
}