Stacking shields

Yes thy have pins in common.
The motor shield does not have to use those pins where as the WiFi has.
Why not make your own motor drive circuit?