I need to do the same for the excerpt field, any hints how to modify your code?