Spanning tree and loop prevention are two different things. Spanning tree work on connections between switches and loop prevention work on switch-to-client. So you wont do loop prevention on ports where you connect switch to switch connection and you won't do spanning tree on ports where you have clients connected.
You generally wish to have the same spanning tree protocol used in all your connected switches.
Best, Gorazd
------------------------------
Gorazd Kikelj
------------------------------