wordpress 使用SQL批量删除包含某个自定义字段指定内容的文章

  • A+
所属分类:Wordpress

代码如下:

DELETE 'wp_posts' FROM 'wp_posts','wp_postmeta' WHERE wp_posts.ID = wp_postmeta.post_id AND wp_postmeta.meta_key = '自定义字段_value' AND wp_postmeta.meta_value LIKE '%指定内容%'

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: