Hi,
This is similar to the discussion here Is there a 'Software SPI'? - Networking, Protocols, and Devices - Arduino Forum .
What you need to do is use two Chip select PINs for wifi and SD card.
Alternatively you can try to use bitbanged SPI,But I have not tried it myself.
Krishna