April 2, 2020
This tag may be used outside The Loop by passing a post id as the parameter.
Note: This function only returns results from the default “category” taxonomy. For custom taxonomies use get_the_terms().