Unless the court otherwise directs, the costs of every party to the action, with reasonable attorney fees to be allowed by the court upon notice served personally or by mail, on the parties who are known to be residents of this state, must be deducted from the proceeds of the sale and paid to the party's attorney; but the court may direct the costs of any trial, reference or other proceeding in the action to be paid out of the share of any party in such proceeds or may render judgment against any party therefor.
Wis. Stat. § 842.21