MySQL Query that looks for post with Custom Field, then changes Category
I can’t tell here whether or not you have the WordPress API available to you. (Is this code that is being run from within an instance of WordPress, or is it being run by an external script on the WordPress database, without bootstrapping WordPress itself?) If you have the WordPress API, it is easy to … Read more