![get_the_terms() – Gets the taxonomy elements (terms) that are attached to the specified post. WP Function. get_the_terms() – Gets the taxonomy elements (terms) that are attached to the specified post. WP Function.](https://wp-kama.com/assets/uploads/2022/01/clipboard-image-181719.png)
get_the_terms() – Gets the taxonomy elements (terms) that are attached to the specified post. WP Function.
![categories - View post with specific category id and name which I selected in the backend (drop-down option) - WordPress Development Stack Exchange categories - View post with specific category id and name which I selected in the backend (drop-down option) - WordPress Development Stack Exchange](https://i.stack.imgur.com/6974x.png)
categories - View post with specific category id and name which I selected in the backend (drop-down option) - WordPress Development Stack Exchange
![categories - Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category in WordPress categories - Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category in WordPress](https://wordpress.horje.com/photo/wbdaA44iE3g/sddefault.jpg)
categories - Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category in WordPress
![get_terms() – Retrieve the terms (items) of a given taxonomy or list of taxonomies by the given parameters. get_terms() – Retrieve the terms (items) of a given taxonomy or list of taxonomies by the given parameters.](https://wp-kama.com/assets/uploads/2021/11/Site-Poster.png)
get_terms() – Retrieve the terms (items) of a given taxonomy or list of taxonomies by the given parameters.
![php - Loop through nested array of child elements wordpress get_terms and display hierarchy - Stack Overflow php - Loop through nested array of child elements wordpress get_terms and display hierarchy - Stack Overflow](https://i.stack.imgur.com/1bV4p.png)