It shall be the duty of the town clerk to cause all bylaws, rules, and regulations of the town, within twenty days after their adoption, to be published by posting in three public places in the town or by one insertion in any newspaper published in the county; but all such bylaws, rules, and regulations shall take effect and be in force from the date of their adoption, unless otherwise directed by the electors of the town.