Getting slug of a product Posted on December 12, 2016 by admin <?php global $product; $slug=$product->post->post_name; echo $slug; ?>