Title: wp-includes/category-template.php | Developer.WordPress.org

---

# File: wp-includes/category-template.php

 * function[get_term_parents_list()](https://developer.wordpress.org/reference/functions/get_term_parents_list/)
 * Retrieves term parents with separator.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/get_term_parents_list/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/functions/get_term_parents_list/#uses)
   | Source: [wp-includes/category-template.php:1398](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1398-L1443)
 * hook[the_category_list](https://developer.wordpress.org/reference/hooks/the_category_list/)
 * Filters the categories before building the category list.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/the_category_list/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/the_category_list/#uses)
   | Source: [wp-includes/category-template.php:158](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L158-L158)
 * hook[wp_generate_tag_cloud_data](https://developer.wordpress.org/reference/hooks/wp_generate_tag_cloud_data/)
 * Filters the data used to generate the tag cloud.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_generate_tag_cloud_data/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_generate_tag_cloud_data/#uses)
   | Source: [wp-includes/category-template.php:999](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L999-L999)
 * hook[get_the_terms](https://developer.wordpress.org/reference/hooks/get_the_terms/)
 * Filters the list of terms attached to the given post.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/get_the_terms/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/get_the_terms/#uses)
   | Source: [wp-includes/category-template.php:1314](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1314-L1314)
 * function[get_the_term_list()](https://developer.wordpress.org/reference/functions/get_the_term_list/)
 * Retrieves a post’s terms as a list with specified format.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/get_the_term_list/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/get_the_term_list/#uses)
   | Source: [wp-includes/category-template.php:1338](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1338-L1378)
 * hook[term_links-{$taxonomy}](https://developer.wordpress.org/reference/hooks/term_links-taxonomy/)
 * Filters the term links for a given taxonomy.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/term_links-taxonomy/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/term_links-taxonomy/#uses)
   | Source: [wp-includes/category-template.php:1375](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1375-L1375)
 * function[the_terms()](https://developer.wordpress.org/reference/functions/the_terms/)
 * Displays the terms for a post in a list.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/the_terms/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/the_terms/#uses)
   | Source: [wp-includes/category-template.php:1457](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1457-L1476)
 * hook[the_terms](https://developer.wordpress.org/reference/hooks/the_terms/)
 * Filters the list of terms to display.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/the_terms/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/the_terms/#uses)
   | Source: [wp-includes/category-template.php:1475](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1475-L1475)
 * function[has_category()](https://developer.wordpress.org/reference/functions/has_category/)
 * Checks if the current post has any of given category.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/has_category/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/has_category/#uses)
   | Source: [wp-includes/category-template.php:1494](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1494-L1496)
 * function[has_tag()](https://developer.wordpress.org/reference/functions/has_tag/)
 * Checks if the current post has any of given tags.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/has_tag/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/has_tag/#uses)
   | Source: [wp-includes/category-template.php:1521](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1521-L1523)
 * function[has_term()](https://developer.wordpress.org/reference/functions/has_term/)
 * Checks if the current post has any of given terms.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/has_term/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/has_term/#uses)
   | Source: [wp-includes/category-template.php:1542](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1542-L1555)
 * hook[get_the_tags](https://developer.wordpress.org/reference/hooks/get_the_tags/)
 * Filters the array of tags for the given post.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/get_the_tags/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/get_the_tags/#uses)
   | Source: [wp-includes/category-template.php:1190](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1190-L1190)
 * function[get_the_tag_list()](https://developer.wordpress.org/reference/functions/get_the_tag_list/)
 * Retrieves the tags for a post formatted as a string.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/get_the_tag_list/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/get_the_tag_list/#uses)
   | Source: [wp-includes/category-template.php:1205](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1205-L1220)
 * hook[the_tags](https://developer.wordpress.org/reference/hooks/the_tags/)
 * Filters the tags list for a given post.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/the_tags/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/the_tags/#uses)
   | Source: [wp-includes/category-template.php:1219](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1219-L1219)
 * function[the_tags()](https://developer.wordpress.org/reference/functions/the_tags/)
 * Displays the tags for a post.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/the_tags/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/the_tags/#uses)
   | Source: [wp-includes/category-template.php:1231](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1231-L1241)
 * function[wp_tag_cloud()](https://developer.wordpress.org/reference/functions/wp_tag_cloud/)
 * Displays a tag cloud.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_tag_cloud/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/functions/wp_tag_cloud/#uses)
   | Source: [wp-includes/category-template.php:716](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L716-L785)
 * function[tag_description()](https://developer.wordpress.org/reference/functions/tag_description/)
 * Retrieves tag description.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/tag_description/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/tag_description/#uses)
   | Source: [wp-includes/category-template.php:1251](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1251-L1253)
 * hook[wp_tag_cloud](https://developer.wordpress.org/reference/hooks/wp_tag_cloud/)
 * Filters the tag cloud output.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_tag_cloud/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_tag_cloud/#uses)
   | Source: [wp-includes/category-template.php:778](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L778-L778)
 * function[term_description()](https://developer.wordpress.org/reference/functions/term_description/)
 * Retrieves term description.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/term_description/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/term_description/#uses)
   | Source: [wp-includes/category-template.php:1265](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1265-L1276)
 * function[default_topic_count_scale()](https://developer.wordpress.org/reference/functions/default_topic_count_scale/)
 * Default topic count scaling for tag links.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/default_topic_count_scale/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/default_topic_count_scale/#uses)
   | Source: [wp-includes/category-template.php:795](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L795-L797)
 * function[get_the_terms()](https://developer.wordpress.org/reference/functions/get_the_terms/)
 * Retrieves the terms of the taxonomy that are attached to the post.
 * Used by [16 functions](https://developer.wordpress.org/reference/functions/get_the_terms/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/functions/get_the_terms/#uses)
   | Source: [wp-includes/category-template.php:1288](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1288-L1321)
 * function[wp_generate_tag_cloud()](https://developer.wordpress.org/reference/functions/wp_generate_tag_cloud/)
 * Generates a tag cloud (heatmap) from provided data.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/wp_generate_tag_cloud/#used-by)
   | Uses [8 functions](https://developer.wordpress.org/reference/functions/wp_generate_tag_cloud/#uses)
   | Source: [wp-includes/category-template.php:845](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L845-L1058)
 * hook[tag_cloud_sort](https://developer.wordpress.org/reference/hooks/tag_cloud_sort/)
 * Filters how the items in a tag cloud are sorted.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/tag_cloud_sort/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/tag_cloud_sort/#uses)
   | Source: [wp-includes/category-template.php:900](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L900-L900)
 * hook[wp_generate_tag_cloud](https://developer.wordpress.org/reference/hooks/wp_generate_tag_cloud/)
 * Filters the generated output of a tag cloud.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_generate_tag_cloud/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_generate_tag_cloud/#uses)
   | Source: [wp-includes/category-template.php:1054](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1054-L1054)
 * function[_wp_object_name_sort_cb()](https://developer.wordpress.org/reference/functions/_wp_object_name_sort_cb/)
 * Serves as a callback for comparing objects based on name.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_wp_object_name_sort_cb/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/_wp_object_name_sort_cb/#uses)
   | Source: [wp-includes/category-template.php:1073](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1073-L1075)
 * function[_wp_object_count_sort_cb()](https://developer.wordpress.org/reference/functions/_wp_object_count_sort_cb/)
 * Serves as a callback for comparing objects based on count.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_wp_object_count_sort_cb/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/_wp_object_count_sort_cb/#uses)
   | Source: [wp-includes/category-template.php:1090](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1090-L1092)
 * function[walk_category_tree()](https://developer.wordpress.org/reference/functions/walk_category_tree/)
 * Retrieves HTML list content for category list.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/walk_category_tree/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/walk_category_tree/#uses)
   | Source: [wp-includes/category-template.php:1111](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1111-L1122)
 * function[walk_category_dropdown_tree()](https://developer.wordpress.org/reference/functions/walk_category_dropdown_tree/)
 * Retrieves HTML dropdown (select) content for category list.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/walk_category_dropdown_tree/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/walk_category_dropdown_tree/#uses)
   | Source: [wp-includes/category-template.php:1137](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1137-L1148)
 * function[get_tag_link()](https://developer.wordpress.org/reference/functions/get_tag_link/)
 * Retrieves the link to the tag.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/get_tag_link/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/get_tag_link/#uses)
   | Source: [wp-includes/category-template.php:1164](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1164-L1166)
 * function[get_the_tags()](https://developer.wordpress.org/reference/functions/get_the_tags/)
 * Retrieves the tags for a post.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/get_the_tags/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/get_the_tags/#uses)
   | Source: [wp-includes/category-template.php:1177](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/category-template.php#L1177-L1191)

1 [2](https://developer.wordpress.org/reference/files/wp-includes/category-template.php/page/2/?output_format=md)

 [Next Page](https://developer.wordpress.org/reference/files/wp-includes/category-template.php/page/2/?output_format=md)