各位大神,如何調(diào)用制作這種關鍵詞的欄目版塊,比如說我發(fā)布某一篇文章以后就會有一個關鍵詞在上面

<ul>
<li class="1"><a target="_blank" href="http://demo154.99yuanma.net:8889/e/tags/?tagname=%E5%95%86%E4%B8%9A%E6%A8%A1%E5%BC%8F">八字</a></li>
<li class="2"><a target="_blank" href="http://www.51kbz.com/bazi/196.html">八字合婚</a></li>
<li class="3"><a target="_blank" href="http://demo154.99yuanma.net:8889/e/tags/?tagname=%E5%88%9B%E4%B8%9A%E7%8E%AF%E5%A2%83">創(chuàng)業(yè)環(huán)境</a></li>
<li class="4"><a target="_blank" href="http://demo154.99yuanma.net:8889/e/tags/?tagname=%E8%81%8C%E4%B8%9A%E7%94%9F%E6%B6%AF%E8%A7%84%E5%88%92">職業(yè)生涯規(guī)劃</a></li>
</ul>
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復@迅??蚣芗夹g-胡老師
那可以調(diào)用所有文章中的關鍵詞嗎
回復@顆粒國
{tag num=20 order=rand} <a href="{$t.url}" title="點擊量:{$t.hits}">{$t.name}</a> {/tag}隨機調(diào)用20個tag詞
關鍵詞TAG
關鍵詞庫插件支持子詞功能,批量入庫關鍵詞,支持自定義字段
第一步、安裝TAG插件
第二步、自動存儲關鍵詞
第三步、發(fā)布文章時填寫關鍵詞,這樣就能自動生成到TAG來
第四部、如果你有很多文章已經(jīng)發(fā)布了,里面也有很多關鍵詞,可以提取到TAG插件里來
第五步、前臺模板調(diào)用
全站TAG調(diào)用
{tag num=20 order=hits}<a href="{$t.url}" title="點擊量:{$t.hits}">{$t.name}</a>{/tag}當前文章TAG調(diào)用
{loop $tags $name $url}<a href="{$url}">{$name}</a>{/loop}更多TAG標簽說明看這個文檔教程
參考文檔:《關鍵詞Tag循環(huán)》
回復@LandQ
這種多種樣式顏色如何來寫呢,如果循環(huán)的話,class或者id要如何來定義
回復@LandQ
這種多種樣式顏色如何來寫呢,如果循環(huán)的話,class或者id要如何來定義
回復@顆粒國 都可以,CSS上寫也行
例如,https://demo.themebetter.com/d8/
右側(cè)TAG標簽寫法
<style> .d_tags{padding: 15px 13px 10px 15px;} .d_tags a:nth-child(9n){background-color: #4A4A4A;} .d_tags a:nth-child(9n+1){background-color: #428BCA;} .d_tags a:nth-child(9n+2){background-color: #5CB85C;} .d_tags a:nth-child(9n+3){background-color: #D9534F;} .d_tags a:nth-child(9n+4){background-color: #567E95;} .d_tags a:nth-child(9n+5){background-color: #B433FF;} .d_tags a:nth-child(9n+6){background-color: #00ABA9;} .d_tags a:nth-child(9n+7){background-color: #B37333;} .d_tags a:nth-child(9n+8){background-color: #FF6600;} .d_tags a{opacity: 0.80;filter:alpha(opacity=80);color: #fff;background-color: #428BCA;display: inline-block;margin: 0 5px 5px 0;padding: 0 10px;line-height: 27px} .d_tags a:hover{opacity: 1;filter:alpha(opacity=100);} </style> <div class="widget d_tag"> <h3 class="widget_tit">熱門標簽</h3> <div class="d_tags"> {tag num=20 order=hits} <a href="{$t.url}" title="點擊量:{$t.hits}">{$t.name}</a> {/tag} </div> </div>