I am fairly new to PHP. I wanted a code snippet to create post category from the post title. If the post title does exists as a category, then assign the post to that category. If the category doesn’t exist, create a category from the post title.
The code snippet should also update the category in case the title changes after post update.
I very well know that my need for this code would be needed by others also. I also know that too many categories for posts are bad. But it is for a better design.
Please help me to set a category/update the category as the exact title of post.
Read more here:: Create/Set Category as Title of Post