Hi all, how would I find a category’s id?
1 个赞
When you go to the category, in the URL you’ll see /xx/ after the category title. The 5 is the category ID in this case.
/c/water-cooler/5
8 个赞
Wonderful! Thank you very much!
1 个赞
您好,
所以,@JimPas 的建议在只需要检查 2-3 个分类的 ID 时是可行的。但是,如果我们想知道论坛中所有分类(和子分类)的分类 ID 呢?
而且,如果我们的论坛像 Mozilla 那样有无数的子分类呢?
我猜我们无法在“站点设置”中查看所有这些信息吧?
我认为最简单的方法是使用数据浏览器查询。
类似这样:
SELECT name, id
FROM categories
ORDER BY name
3 个赞