The mayor and council members shall receive compensation and expenses for their services as provided by ordinance; however, compensation shall be paid only for meetings attended.