Skip to main content
21 events
when toggle format what by license comment
Feb 26, 2021 at 12:46 history edited Jignesh Patel CC BY-SA 4.0
added 139 characters in body
Feb 26, 2021 at 12:41 vote accept Dean
Feb 26, 2021 at 12:41 comment added Dean ah it works now that I added images, thank you! used your third edit for the answer
Feb 26, 2021 at 12:37 comment added Dean I didn't set images but I thought it would have used the standard default image if no image assigned??
Feb 26, 2021 at 12:35 comment added Jignesh Patel Dean are you sure you set thumbnail for term. Because thumbnail_id is 0. please check in admin and you set thumbnail then check database entry.
Feb 26, 2021 at 12:29 comment added Dean array(3) { ["order"]=> array(1) { [0]=> string(1) "0" } ["display_type"]=> array(1) { [0]=> string(0) "" } ["thumbnail_id"]=> array(1) { [0]=> string(1) "0" } } array(3) { ["order"]=> array(1) { [0]=> string(1) "0" } ["display_type"]=> array(1) { [0]=> string(0) "" } ["thumbnail_id"]=> array(1) { [0]=> string(1) "0" } }
Feb 26, 2021 at 12:28 comment added Jignesh Patel Dean with this $subcategory->term_id
Feb 26, 2021 at 12:28 history edited Jignesh Patel CC BY-SA 4.0
added 13 characters in body
Feb 26, 2021 at 12:27 comment added Dean $meta = get_term_meta( $term_id ); ??? $term_id isnt declared?
Feb 26, 2021 at 12:25 comment added Jignesh Patel please check all meta it's give thub id or not?
Feb 26, 2021 at 12:24 history edited Jignesh Patel CC BY-SA 4.0
added 132 characters in body
Feb 26, 2021 at 12:24 comment added Dean $thumb_id returns 0 though
Feb 26, 2021 at 12:23 history edited Jignesh Patel CC BY-SA 4.0
added 132 characters in body
Feb 26, 2021 at 12:23 comment added Dean seems to return the ids correctly
Feb 26, 2021 at 12:21 comment added Jignesh Patel Then first please print $subcategory->term_id and check what id you get
Feb 26, 2021 at 12:20 review Low quality posts
Feb 26, 2021 at 12:36
Feb 26, 2021 at 12:17 comment added Dean $thumb_id = get_woocommerce_term_meta( $subcategory->term_id, 'thumbnail_id', true ); $term_img = wp_get_attachment_url( $thumb_id ); is not working
Feb 26, 2021 at 12:13 history edited Jignesh Patel CC BY-SA 4.0
added 7 characters in body
Feb 26, 2021 at 12:13 comment added Dean Deprecated: get_woocommerce_term_meta is deprecated since version 3.6! Use get_term_meta instead
Feb 26, 2021 at 12:08 history edited Jignesh Patel CC BY-SA 4.0
added 204 characters in body
Feb 26, 2021 at 12:03 history answered Jignesh Patel CC BY-SA 4.0