如何通过使用SQL查询将类别添加到所有帖子? [英] How to add category to all post by using sql query?
本文介绍了如何通过使用SQL查询将类别添加到所有帖子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一千个帖子,而且所有帖子都没有类别。那么,您知道如何通过使用sql query将类别与所有帖子相关联吗?谢谢!
I have a thousand posts and all them don't have category. So, Do you know how to associate category with all posts by using sql query ? Thank you !
推荐答案
不需要使用mySql,您可以在wp管理员中使用批量操作来实现
don't need to use mySql, you can do it with bulk actions in your wp admin
- 照常创建类别。
- 转到条目并全部选择
- 批量选择/编辑
- 一次编辑所有内容。
- Create your categories as usual.
- Go to your entries and select them all
- Select in bulk actions / edit
- Edit all at once.
这篇关于如何通过使用SQL查询将类别添加到所有帖子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文