then check like that:
$thumb_id = get_woocommerce_term_meta( $subcategory->term_id, 'thumbnail_id', true );
$term_img = wp_get_attachment_url( $thumb_id );
and check like this
$meta = get_term_meta( $subcategory->term_id );
var_dump($meta);
$thumb_id = $meta['thumbnail_id'][0];
$term_img = wp_get_attachment_url( $thumb_id );
and you also get like this
$thumbnail_id = get_term_meta( $subcategory->term_id, 'thumbnail_id', true );
$image = wp_get_attachment_url( $thumbnail_id );
Related Posts:
- Including post thumbnail url in loop’s post object to reduce number of queries
- WP Loop. If featured image is a panorama (3:1 ratio) execute some code
- Pulling in featured image into default recent posts widget
- Closing the loop…featured image variable based on post id
- WordPress get post thumbnail url
- How to output thumbnail twice in a loop
- Default featured image set as background image [closed]
- How can I access a post’s feature image outside the loop?
- How to check all items in a loop have post thumbnail?
- Thumbnail Image Rounded Corners w CSS (or any other good method)
- Thumbnail of the latest posts page
- Pages with a loop (index, archive) are loading the first image as post_thumbnail
- Display Featured Image
- Place the Featured image on a post, before the first via code
- How to display Yoast SEO meta description in archive template for each post instead of the_excerpt()? [closed]
- How to place comments_template(); outside the loop?
- Display thumbnail only on the very first post in the loop?
- Endless loop with wp_insert_post and wp_update_post
- How do I prevent one of two multiple loops from repeating on a second page?
- Hook into the loop via a plugin, and output something after every X post?
- Two custom loops, pagination, offset
- How are both HTTP and HTTPS versions displaying?
- Access to Media Library
- Getting two wp_link_pages output
- How do you split multiple-column loop on category archive page?
- How to Loop within a Loop (Display Children and then Grandchildren)
- Run The Loop over array of post objects
- Enable infinite scroll on single.php [closed]
- How to loop through ALL pages?
- Does get_template_part pull data once in a loop?
- Get titles of all posts with current tags except current post
- How to retrieve “sticky” post outside the “loop”?
- Creating a multi-taxonomy query, excluding the newest (read: highest ID) taxonomy term
- Show a different post every 3 days [duplicate]
- Using get_the_excerpt() Before The Loop
- code suddenly appearing from my tempate second loop
- What is the maximum number of posts a WordPress loop can work with?
- wp_query inside the_loop
- How to go about combining dropdowns / filter queries?
- woocommerce get_price_html not pulling in correct price
- How to fix pagination for custom loops?
- WordPress Rewriting the DOM?
- How to display posts by vote count and if no value continue with latest posts with no votes?
- Sort results by groups of numbers and letters
- Modify the main loop to display current month / year
- Basic multiple loops only displaying first loop
- Display post list with different styles
- Loop for sticky posts
- Get author_id in wordpress
- Array ids post to function have_post
- Is it possible to reverse the order of a list of posts pulled from a loop?
- Give each posts in a loop a number in sequence
- Contact information footer
- custom post on homepage
- Multisite foreach loop returning only one result
- get_comments with post_status ‘public’ retrieves NULL result
- Loop is crazy – one row displays wrong count of posts [closed]
- I have broke my pagination, same posts on all pages (index.php)
- Filter existing hook using parameter and foreach loop
- Run “the loop” in a random order
- Search page loop banner image issue
- Video post format, extra content breaks video embed
- Using has_tag() outside loop
- Getting selection of posts based on loop variables via Ajax
- Why would this code work locally but break online?
- Why would a completely normal loop give offset errors and maximum execution time errors?
- Avoid WP_Query’s duplicate posts with taxonomies
- How to create multiple loop in archive page?
- Offset for Loop
- Properly loop through and paginate page on each function call
- Why does my WP_Query pagination on a custom page.php only loads the homepage?
- WordPress finding posts on 404 page
- Get a Post Loop based on Logged in User information into a Shortcode
- get the value for ALT is we check to see if an actual ALT value is set, if not we use the caption and if no caption is set we use the title
- how to add 4 post in one carousel slide
- How to get all multi-select user meta values and add them to an array?
- How to resolve a reload loop issue in the frontend when logged in to WordPress multi-site backend admin area
- Exclude Posts Using Meta Query and User Meta
- Is “the loop” a template tag?
- Excerpt isn’t working or am I missing something?
- Can I temporarily disable global $post?
- Shortcode for pulling specific Post Title outside loop when ID is passed in
- Show a list of user posts in the user admin page
- Infinite Loop after Genesis Theme Upgrade
- Active class for my flexslider in WordPress
- WordPress loop only displays 5 articles max?
- How to display thumbnail if post is assigned one otherwise not
- get_template_part() to render single page Theme
- Can’t see custom field after the Loop [closed]
- Showing related posts (custom post type) outside of the loop
- Same Loop on Multiple Pages
- Paged homepage – requirements?
- Least Number of Loops to Create Custom Homepage?
- The Loop for my theme with static front page is not working
- WordPress loop: Display if posts exist
- Showing ads after posts in home page
- Prevent duplicating specific column from database table
- How to get files from loop for zip
- Divide loop into several columns based on post custom field and enable infinite scrolling
- Query Loop Block: possible to restrict just child pages?