create category upon saving post and save post in that category
The primary thing you’ll need to use here is the save_post hook in WordPress to execute your code right after a post is saved. Read up on the save_post hook on the WordPress codex first and then come back here. The next part is assigning the post to a taxonomy term. This can be done … Read more