WordPress 自定义分类法的判断函数 is_tax()

判断当前页面是否为自定义分类法

is_tax('products_list')

products_list代表自定义分类名:

使用例子