Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
// the wordpress loop starts
$terms = get_the_terms( get_the_id(), 'taxonomy_name' );
foreach( $terms as $term ){
$term_id = $term->id;
$term_description = $term->descripion;
}
// the loop ends
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment