St. Louis took sole possession of first place in the NL Central for the first time this season with its third straight win. The Cardinals moved one game ahead of Milwaukee, which lost to the Chicago Cubs.
St. Louis scored three in the seventh. Wong homered off Pittsburgh starter Gerrit Cole (7-5) to tie the score at 4-all. Jon Jay followed with a triple and scored on Holliday's single to left.
Holliday, who also had a two-run double in the third, is 7 for 11 with three home runs and 12 RBIs in the last three games.
Seth Maness (6-3) picked up win in relief. Trevor Rosenthal got the last three outs for his 41st save.