update category to a post