#删除指定分类的文章
delete
from
xn_posts
using
xn_posts,
xn_term_relationships,
xn_term_taxonomy
where
xn_posts.id = xn_term_relationships.object_id
and
xn_term_relationships.term_taxonomy_id = xn_term_taxonomy.term_taxonomy_id
and
xn_term_relationships.term_taxonomy_id = 18(分类ID)
#删除分类
delete FROM `xn_term_relationships` where term_taxonomy_id = 18(分类ID)
WordPress批量删除指定分类下的所有文章
发表评论
置顶推荐
-
OneNice Pro简洁且强大的WORDPRESS主题 2020-07-15
-
OneNice简洁大方且开源免费的WordPress主题 2020-04-15
-
loadjs - javascript动态载入css和js文件 2020-04-14
-
AutoText - 好用的AutoCad插件 2020-04-25
热门文章
-
OneNice简洁大方且开源免费的WordPress主题 7127 阅读
-
Bootstrap4显示和隐藏元素 2645 阅读
-
mysql批量去除重复记录 2029 阅读
-
OneNice Pro简洁且强大的WORDPRESS主题 1268 阅读
-
-
BT宝塔中安装nodejs 945 阅读
-
github无法加载或不显示图片问题 919 阅读
-
Javascipt自定义哈希表 901 阅读