Create/Set Category as Title of Post

Can’t give you fish, but I can try you to teach how to fish with a couple of pointers;

  1. hook into publish_post (good example code there) and / or post_updated
  2. in the function that is called that way, use wp_create_category (which will only create if the cat. name doesn’t exist yet)
  3. and with the cat ID you get that you then call wp_set_post_categories (make sure to set the 3rd param to true)

happy coding! 🙂

frank