Last active
December 6, 2017 00:29
-
-
Save Jakobuz/6b308d3429a51c95f740034ce404b7f7 to your computer and use it in GitHub Desktop.
Wordpress | Get all terms in custom 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
$taxonomies = array( | |
'custom_category' | |
); | |
$args = array( | |
'orderby' => 'name', | |
'order' => 'ASC', | |
'hide_empty' => false, | |
'exclude' => array(), | |
'exclude_tree' => array(), | |
'include' => array(), | |
'number' => '', | |
'fields' => 'all', | |
'slug' => '', | |
'parent' => '', | |
'hierarchical' => true, | |
'child_of' => 0, | |
'get' => '', | |
'name__like' => '', | |
'pad_counts' => false, | |
'offset' => '', | |
'search' => '', | |
'cache_domain' => 'core' | |
); | |
$terms = get_terms( $taxonomies , $args); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment