fix for getting the associated category from a post