Update permalink, setup attributes