All officers of the court selling property under process or court order shall pay all taxes that are due and unpaid against the property from the proceeds of the sale after the payment of the costs of the proceedings and any attorney’s fee allowed by the court when the court order or process directs that taxes shall be paid.