automatic

Automatically Add Categories to Posts Based on Tags

The code below will automatically add categories to a post when it is published or updated.  This operates on one tag at a time and adds a category each time it finds a tag in the post that matches a tag in the $tag_categories array. So, if a post is in ‘info’, it will add category ‘information’, etc. Since it loops through all the tags for a post, it might add several categories. Continue reading