Go to the part of the stage where you ride the blue dinosaur. Get on the dinosaur and when you reach the third set of blocks, jump on them. There will be two Coins. Jump between them and you should hit an invisible block that has a climbing plant on it. Climb up it and it will take you to a platform with a pipe. Go through it and it will take you to a secret exit.