get_the_category_list()
shows categories that have been assigned to a particular post/page.
If you want a list of all categories you’ve defined then you should use wp_list_categories()
(Link to Codex)
get_the_category_list()
shows categories that have been assigned to a particular post/page.
If you want a list of all categories you’ve defined then you should use wp_list_categories()
(Link to Codex)