Can I update all my posts inside my custom post type by creating a simple function

I'm stuck at a scenario where my events custom post type posts have categories ticked but not actually assigned to

I'm stuck at a scenario where my events custom post type posts have categories ticked but not actually assigned to them untill I manually republish or update every single post.

And its happening accros multisites and there are thousand of events which I cannot update manually one by one.

I was thinking of using wp-insert-post or wp-update-post functionality of wordpress in a loop across all my custom post type posts...

If anyone can point me in right direction.

Regards.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744934614a4601941.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信