Placing anti-personnel mines is also not very effective in a pitched conflict.
The enemy will lose a few soldiers, but will then clear a marked path. The long term effects far outweigh any short-term advantage.