有没有办法从数据库中删除该类别?
我只是将我的旧wordpress博客(在url中有类别)移动到新域(没有类别)。
我改变了一切,除了类别。甚至我都不知道它存储在数据库中的什么位置:(
更新
Problem is resolved, I added the answer below so that it will help to others.
有没有办法从数据库中删除该类别?
我只是将我的旧wordpress博客(在url中有类别)移动到新域(没有类别)。
我改变了一切,除了类别。甚至我都不知道它存储在数据库中的什么位置:(
Problem is resolved, I added the answer below so that it will help to others.
通过以下查询完成:
delete from `wp_terms` where `term_id` in ( SELECT `term_id`
FROM `wp_term_taxonomy`
WHERE `taxonomy` = \'category\' ) and `term_id` not like 1
此查询删除了除默认类别以外的所有类别。希望这对其他人有所帮助。我是wordpress的新手。我想为每个主要类别创建一些主要类别和5个子类别。两个主要类别的子类别将相同。E、 g主要类别将是“美国”、“加拿大”等。子类别将是“地点”、“照片”等。是否可以使用单个wordpress进行此操作,或者是否需要为每个主要类别安装另一个wordpress?