This paper investigates the consensus tracking problems of singular partial differential multi-agent systems (SPD-MASs) with initial state errors under fixed and iteration-varying network topologies, where only certain follower agents have access the trajectory defined by virtual leaders. To solve this problem, a distributed iterative learning consensus protocol with initial state learning is proposed, ensuring accurate tracking of the leader's trajectory by all follower agents with initial state errors. The convergence conditions for consensus tracking error are derived through mathematical analysis between adjacent agents. Theoretical analysis shows that, under convergence conditions, the consensus error between any two agents can converge to zero along the iterative axis. Finally, numerical simulations show validate the effectiveness of the proposed distributed control protocol with initial state learning compared to traditional protocols without state learning.