Solution of the generalized periodic discrete Toda equation II; Theta function solution