Created
October 9, 2014 08:59
-
-
Save KnightAlex/513bf64501a3bf16d70b to your computer and use it in GitHub Desktop.
WooCommerce get category Id from cat page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$category = get_queried_object(); | |
echo $category->term_id; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment