Adding post category related code