Created
July 30, 2016 02:32
-
-
Save braginteractive/2f2c3336db36b62c200ad0638d1d5d89 to your computer and use it in GitHub Desktop.
Just display the parent categories of a CPT taxonomy
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
$taxonomy = 'inventory_category'; | |
$cat_args = array( | |
'taxonomy' => 'inventory_category', | |
'parent' => 0, | |
'number' => 10, | |
'hide_empty' => true | |
); | |
$terms = get_terms($cat_args); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment