If the planet is not transiting there are two other ways to detect it: radial velocity measurements, and direct imaging. In the radial velocity technique you measure the wobble of the star due to the gravitational pull of the planet. This also requires that the planet be somewhat edge-on, but the requirement isn't nearly as strict as with the transit method. The difficulty is that Earth size planets have very little mass, and so impart a very small wobble to the star, on the order of only ~10 cm / s.
In the second method, you just try to block as much light from the star as you can and go look for the reflected light of the planet. This is much, much more difficult and so far has only been done for very large, distant planets.