WP-CLI batch edit thousands of posts at once
In this article, I will walk through how I made a bash script using WP-CLI to edit categories on thousands of posts at once, showing you the script at various stages of revision. Hopefully, this will demonstrate the problem-solving process, so that it may help you solve something like this quicker than me. The issue at hand One of my WordPress clients wanted to reorganise a bunch of their posts into different categories....