gpt4 book ai didi

mysql - 通过 MySQL 查询批量操作 : render all posts in category private

转载 作者:行者123 更新时间:2023-11-30 23:26:16 25 4
gpt4 key购买 nike

我想对特定类别的 WordPress 帖子执行批量操作:我想将类别中的所有帖子呈现为私有(private)。

这个 MySQL 查询似乎很接近,但它不起作用(我想我把括号里的点弄错了):

UPDATE wp_posts SET post_status= 'private' WHERE post_staus = 'publish' and ID in (select object_id from wp_term_relationships where term_taxonomy_id  = 25);

最佳答案

似乎您在“WHERE post_staus”中有错误:应该是“WHERE post_status”。

关于mysql - 通过 MySQL 查询批量操作 : render all posts in category private,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13207475/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com