What are the D02, D08, D10 arduino pins equivalent on Teensy?
If the chip doesn’t use any special functions of those pins (for example, UART on pins D0 and D1 or I2C on A4 and A5), you can connect to any pin on a Teensy. You would of course have to modify the library with the correct pin values. Some libraries let you specify the pins at run time.

Of the pins you mention, D2 has an interrupt attached, D10 has PWM, and D8 has a PC interrupt. A Wi-Fi shield is unlikely to use PWM. 

It is very possible that a Wi-Fi would need interrupts. Assuming you are using the “Pin Assignments, Using Arduino Software” on the pinout page, I would map Arduino 2 to Teensy 5 (for INT0) and Arduino 8 to Teensy 0 (for PCINT0). Then map Arduino D10 to any spare pin on Teensy. If that doesn’t work you’ll probably have to dig deeper through the library.

I am not very familiar with the WiShield library, but whether PCINT0 is used seems to be configurable. You might want to read through spi.h and WiShield.cpp to understand how that works.