You’re using $term->ID
. Taxonomy terms do not have an ID
property. They have a term_id
property:
$display_type = get_term_meta( $term->term_id );
You’ll notice that WooCommerce is using this, while your attempts are not.
You’re using $term->ID
. Taxonomy terms do not have an ID
property. They have a term_id
property:
$display_type = get_term_meta( $term->term_id );
You’ll notice that WooCommerce is using this, while your attempts are not.