How? TP's backstory doesn't really support ALTTP's at all. for one thing one of the wise men doesn't die in the imprisoning war and the imprisoning war is about trapping ganon in the golden land not the twilight realm. Also there is no way to access the twilight realm after TP with the mirror...
I think ALTTP goes into the adult timeline with all the ancient history that we're told in the prologue that seems to be a very vague account of what happens in the end of ocarina of time. I think the 2 original games though go in the child timeline and are the last games in both timelines where...