dedecms文章内容页调用关键词并增加链接
更新:HHH   时间:2023-1-7


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 ><h3>$k</h3></a> ";
        }
         @me= str_replace(' ', ' ',trim(@me));
    }
 {/dede:field}
返回web开发教程...