In your foreach
loop, the current term you are iterating is $tax_term
:
foreach ($tax_terms as $tax_term) {
so within that block, the term’s ID is $tax_term->term_id
:
<div id="<?php echo $tax_term->term_id; ?>">
In your foreach
loop, the current term you are iterating is $tax_term
:
foreach ($tax_terms as $tax_term) {
so within that block, the term’s ID is $tax_term->term_id
:
<div id="<?php echo $tax_term->term_id; ?>">