Created
April 17, 2020 08:48
-
-
Save dvdopi/9076f7daa428a2df6a47af344dbdbf17 to your computer and use it in GitHub Desktop.
wordpress - get all taxonomy items of a particular 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
$categories = get_terms(array( | |
'taxonomy' => 'taxonomy-slug', | |
'hide_empty' => false, | |
'order' => 'DESC' | |
)); | |
foreach ($categories as $category) { | |
Print_r($category); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment