Automatically assign posts by author to a specific category
The solution is quite simple. And is subdivided into two separate processes – querying the posts and modifying their category terms. Querying the posts get_posts is a function that returns posts. A full list of arguments can be seen in WP_Query parameters To get all posts for a specific author, you do something like: get_posts( … Read more