getting permalinks to work and messing with retail branches post ype