Get terms of a post but only if they’re also the child of a specific term
If I understood right, right now you get all child terms of term with id = 5, but you need to show only terms from this list, which are attached to the post. get_terms()Retrieves the terms in a given taxonomy or list of taxonomies. Try to use wp_get_post_terms() instead, which allows you to set post … Read more