我正在从后端(wordpress dashboard)删除自定义帖子。我为自定义帖子类型制作了一个前端表单,它有用于自定义分类的复选框。现在,前端没有提取分类法:(请帮忙。
我不知道这是word press缓存问题还是其他问题。以前有人见过这样的东西吗?
The Custom taxonomies in front-end which are no longer fetch-able
But are visible in the back-end

最合适的回答,由SO网友:Pavitar 整理而成
解决这个问题的方法非常简单。我是否彻底阅读了WP文档get_categories
显然我必须设置这个\'hide_empty\' => false
当我获取分类法时:)