- View All Tables
WP_Term Object
(
[term_id] => 51
[name] => Dining
[slug] => dining-tables
[term_group] => 0
[term_taxonomy_id] => 51
[taxonomy] => product_cat
[description] =>
[parent] => 21
[count] => 10
[filter] => raw
[term_order] => 0
[cat_ID] => 51
[category_count] => 10
[category_description] =>
[cat_name] => Dining
[category_nicename] => dining-tables
[category_parent] => 21
)
- Dining
WP_Term Object
(
[term_id] => 52
[name] => Coffee
[slug] => coffee-tables
[term_group] => 0
[term_taxonomy_id] => 52
[taxonomy] => product_cat
[description] =>
[parent] => 21
[count] => 2
[filter] => raw
[term_order] => 0
[cat_ID] => 52
[category_count] => 2
[category_description] =>
[cat_name] => Coffee
[category_nicename] => coffee-tables
[category_parent] => 21
)
- Coffee
WP_Term Object
(
[term_id] => 53
[name] => Entrance
[slug] => entrance-tables
[term_group] => 0
[term_taxonomy_id] => 53
[taxonomy] => product_cat
[description] =>
[parent] => 21
[count] => 5
[filter] => raw
[term_order] => 0
[cat_ID] => 53
[category_count] => 5
[category_description] =>
[cat_name] => Entrance
[category_nicename] => entrance-tables
[category_parent] => 21
)
- Entrance
WP_Term Object
(
[term_id] => 54
[name] => Side
[slug] => side-tables
[term_group] => 0
[term_taxonomy_id] => 54
[taxonomy] => product_cat
[description] =>
[parent] => 21
[count] => 2
[filter] => raw
[term_order] => 0
[cat_ID] => 54
[category_count] => 2
[category_description] =>
[cat_name] => Side
[category_nicename] => side-tables
[category_parent] => 21
)
- Side
WP_Term Object
(
[term_id] => 22
[name] => Desks
[slug] => desks
[term_group] => 0
[term_taxonomy_id] => 22
[taxonomy] => product_cat
[description] =>
[parent] => 21
[count] => 2
[filter] => raw
[term_order] => 0
[cat_ID] => 22
[category_count] => 2
[category_description] =>
[cat_name] => Desks
[category_nicename] => desks
[category_parent] => 21
)
- Desks
$thumbnail_id = get_woocommerce_term_meta( $cat->term_id, 'thumbnail_id', true );
$image = wp_get_attachment_url( $thumbnail_id );