Changed function for categories, and post thumbnail