Notwithstanding the provisions of § 26-7A-31, if the court determines mediation as provided in § 25-4-56 is not feasible the court may appoint counsel for any child involved in any divorce or custody proceeding, in which the child is alleged to be neglected or abused, or if a parent, guardian, or custodian request counsel be appointed in such proceeding and if the court determines that it is in the best interest of the child to have counsel appointed for the child. The counsel shall be charged with representation of the child's best interests and may not be counsel for any other party involved. The court may designate other persons who may or may not be attorneys to assist in the performance of the counsel's duties. The court shall allocate the cost of the appointed counsel between the parents, guardian, or custodian of the child.
SDCL 25-4-45.4