How do you get to yold town on paper Mario?

Assuming you're talking about Yold Town in Super Paper Mario and not Paper Mario or Paper Mario: The Thousand Year Door, you must complete World 1-1 and must get past the two bridges on World 1-2.