I need to print all terms associated to a custom post type post. In the post template I wrote that code:
<?php foreach (get_the_terms(the_ID(), 'taxonomy') as $cat) : ?>
<?php echo $cat->name; ?>
<?php endforeach; ?>
The loop works correctly, but before the list also the id was printed. Like:
37
taxonomy01
taxonomy02
taxonomy03
What is wrong?