The ordinance shall, prior to the election, be published five times in a daily newspaper printed and published in the municipal corporation, or twice in a weekly newspaper printed and published therein, if there is no such daily newspaper. If no daily or weekly newspaper is printed and published in the municipal corporation, the clerk of the legislative body shall post a copy of the ordinance in three public places in the municipal corporation at least 10 days prior to the election.