The "26 inch" is the size of the wheels, not the size of the bike. You can ride a 26 inch bike if the frame is the right size. In general, once a frame is built for a given wheel size, it can't be changed to any other size without spending more money than the bike is worth.
HTH