douxiuyu2028 2014-10-30 07:28
浏览 10

什么是列出Wordpress中所有自定义分类法的最佳方法

Ok so I have a custom taxonomy called "Types" for a custom post type of "Products". Now I have a lot of different "types" for that custom post type. I want to list out all of the different types with a link to those specific types that displays all of the products assigned to those specific types.

I know of wp_list_categories which is great but can I use it for custom taxonomies and not just the default Wordpress category taxonomy? Is there another way or a better way of listing all of my custom taxonomies that give me the ability to list out all or certain types?

Quick example of how I would want to see my list of custom taxonomies:

Types:

  • Sweet(1)
  • Sour(4)
  • Spicy(7)
  • Hot(2)
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 已知平面坐标系(非直角坐标系)内三个点的坐标,反求两坐标轴的夹角
    • ¥15 webots有问题,无响应
    • ¥15 数据量少可以用MK趋势分析吗
    • ¥15 使用VH6501干扰RTR位,CANoe上显示的错误帧不足32个就进入bus off快慢恢复,为什么?
    • ¥15 大智慧怎么编写一个选股程序
    • ¥100 python 调用 cgps 命令获取 实时位置信息
    • ¥15 两台交换机分别是trunk接口和access接口为何无法通信,通信过程是如何?
    • ¥15 C语言使用vscode编码错误
    • ¥15 用KSV5转成本时,如何不生成那笔中间凭证
    • ¥20 ensp怎么配置让PC1和PC2通讯上