Last active
June 14, 2016 02:05
-
-
Save mateusneves/e7dc746077aeb6164cdfbe39c2e52e50 to your computer and use it in GitHub Desktop.
Get current category parent ID
This file contains hidden or 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
| $category = get_the_category(); | |
| $parent_cat = $category->category_parent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment