Update wordpress-snippets.php

Added loop outside of wordpress : Woocommerce