最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
WordPress中让不同分类不同图标的方法
时间:2022-06-25 19:16:16 编辑:袖梨 来源:一聚教程网
获取当前分类的名称:https://img.111cn.net
https://img.111cn.net代码如下https://img.111cn.net | https://img.111cn.net复制代码https://img.111cn.net | https://img.111cn.net
https://img.111cn.net https://img.111cn.netforeachhttps://img.111cn.net((get_the_category()) as $cat){echo $cat->cat_name;}?>https://img.111cn.net https://img.111cn.net |
https://img.111cn.net
https://img.111cn.nethttps://img.111cn.net
https://img.111cn.net获取当前分类的别名:https://img.111cn.net
https://img.111cn.net代码如下https://img.111cn.net | https://img.111cn.net复制代码https://img.111cn.net | https://img.111cn.net
https://img.111cn.netcategory_nicename;}?>https://img.111cn.net | https://img.111cn.net
有了这两段代码,然后再组装成图片超链接代码。图片可以从主题里的文件夹获取,图片名字可以用分类的别名代替。https://img.111cn.net
https://img.111cn.net全套代码如下:https://img.111cn.net
https://img.111cn.net代码如下https://img.111cn.net | https://img.111cn.net复制代码https://img.111cn.net | https://img.111cn.net
https://img.111cn.net https://img.111cn.nethttps://img.111cn.net |
https://img.111cn.net
https://img.111cn.net看看我在测试博客上的效果吧https://img.111cn.net
https://img.111cn.nethttps://img.111cn.nethttps://img.111cn.nethttps://img.111cn.nethttps://img.111cn.net
https://img.111cn.nethttps://img.111cn.nethttps://img.111cn.nethttps://img.111cn.nethttps://img.111cn.net
https://img.111cn.net https://img.111cn.net https://img.111cn.net相关文章
- 《无限暖暖》天星之羽获得位置介绍 12-20
- 《流放之路2》重铸台解锁方法介绍 12-20
- 《无限暖暖》瞄准那个亮亮的成就怎么做 12-20
- 《无限暖暖》魔气怪终结者完成方法 12-20
- 《无限暖暖》曙光毛团获得位置介绍 12-20
- 《无限暖暖》日光果获得位置介绍 12-20