wordpress 根据标签显示不同的文章插件

2025-02-23 11:55:30
推荐回答(1个)
回答1:

WordPress 文章标签tags调用方法:
1、打开文章页模板single.php,在你需要显示Tags的地方,添加下面的代码:


标签: ', ' , ' , ''); ?>

2、为了更好看些,打开你的CSS样式文件style.css,添加下面的CSS样式:
#article-tag { clear: both; border: 1px dotted #ccc; padding: 5px; margin-bottom: 5px; }
#article-tag,
#article-cnt #article-tag a { text-decoration: none; color: #666; }
#article-cnt #article-tag a:hover { text-decoration: underline; }