Bulk unpublish posts between specific dates (e.g. from April 2017 and earlier)?
You can do this without writing any code using WP CLI by chaining 2 commands together: the command to retrieve all posts from April 2017 or earlier the command to update all posts and set the post_status set to draft Retrieving All the Posts Before April 2017 We can use wp post list to do … Read more