I resolved it by using get_woocommerce_term_meta
$terms = get_terms( array(
'taxonomy' => 'pa_texture',
'hide_empty' => false,
));
foreach ( $terms as $term ) :
$thumbnail_id = get_woocommerce_term_meta( $term->term_id, 'pa_texture_swatches_id_photo', true );
$textureImg = wp_get_attachment_image_src( $thumbnail_id, 'full' ); ?>
<img src="https://wordpress.stackexchange.com/questions/274247/<?php echo $textureImg[0]; ?>">
endforeach;
Related Posts:
- Product Images Low Quality After Updating From WP 3.5 to 4 [closed]
- When upload a PNG a noise appears in the thumbnails
- Image thumbnail on single product issue | WooCommerce
- How do I delete all UNUSED images from my uploads directory?
- WP 4.4. responsive images browser choosing the “wrong” one
- Remove images (files) that were generated when using add_image_size()
- Is there a hook which fires after all thumbnails are generated?
- Using Images in WordPress – Best Practices
- get_the_post_thumbnail_url with an unregistered size
- Cropped featured image replaces original image in gallery
- Change html structure of all img tags in WordPress
- How do I delete all generated images from my server except those currently used in posts
- How to create thumbnails with a fixed width, so all of them will have the same width?
- Adding HTML within an image title attribute
- How do I delete thousands of unattached images?
- Cannot access the thumbnails of attachment images… Cannot find the reason
- How to remove link from an image in a post?
- Removing Title Tag from Thumbnails
- Change html structure of all img tags in WordPress
- Setup A Default Featured Image
- Disable wordpress image sizes generation
- WP 3.4 has missing photo data
- What’s the best “insert all images” plugin?
- Display latest 12 images from media library
- Image Quality Thumbnail Compression in WordPress?
- Lazyload post thumbnails
- How can I make all post image uploads have data-width and data-height attributes automatically by default?
- Photography Based Design – Multiple Images Per Post
- Get thumbnail url of custom meta image?
- Woocommerce featured image of page – not product
- wp_upload_bits does not retrieve images that do not have an extension
- How to stop thumbnail generation from some images and different size thumbnail generate
- Update old Post image metadata to ‘thumbnail’ wp_attached_file
- How to stop wordpress always displaying full-res images
- wordpress (woocommerce) add image to media library programmatically python
- Get ALT attribute from title post (code not work)
- Change thumbnail image depending product category
- Fixing image names for a site being restored
- force feed readers to pick atom version
- Image LazyLoad plugin not loading jQuery dependancies with wp_enqueue_script in WP 3.3.1
- How to make thumbnails of uploaded animated gifs NOT animated
- Is it possible to change image size used for preview thumnail in Add Media popup
- Redirect to another page using contact form 7? [closed]
- How to check for images before echo
- Remove height attribute from wp_get_attachment
- Filter for post_thumbnail: link to small src and add data-attribute [duplicate]
- Images give 404 after changing default domain
- Dynamic image crop in WP 3.0+?
- How do I get a smaller size of an avatar image
- Why WordPress suddenly changed sizes of thumbnails?
- Rebuild thumbnails via WP Cli – how?
- Can we use featured image as third party website image URL
- How to make footer area transparent? Using Avada and WordPress [closed]
- add_image_size not working
- Disable Media File Image Link On Mobile Devices
- adding image to post thumbnail from another server
- Hide image gallery in Woocommerce if NO image [closed]
- Apply nextgen-gallery lightbox effect [closed]
- Broken thumbnails (sometimes) with TimThumb
- Is it possible to save crop to a different size of the image when in image editor?
- Apply manual image cropping not to thumbnail but medium_large size
- Images not showing after wordpres update 5.6
- How to use default image as featured image by implement some code in function.php
- Auto Generate Thumbnail
- WordPress Multisite: Images moved to /sites/1?
- unsharp thumbnails after uploading image
- ADD class to all my images (thumbail)
- How to make image uploads default to full size?
- I cannot upload images to post or the media library in wordpress
- Why image Thumbnail url is not displaying with custom size?
- Exclude first image from a Woocommerce image gallery
- How to disable post-thumbnail from generation?
- Why does wp_get_attachment_image_src return the wrong size, when the correct size exists?
- WordPress can’t detect any thumbnails size?
- WordPress 404 Images – Images not found after deleted from media
- How to delete images from database with product
- How can the alt be added to this wooCommerce category image?
- Bypass wp_safe_remote_get()?
- Get “Image CSS Class” value from the Advanced Options section
- Dinamically modifying attributes of images on posts
- How Do I Auto Generate Thumbnail from First Embedded Image?
- Why doesn’t WordPress make thumbnails for videos?
- How to add multiple images in a page
- Only User Upload image Http Error
- Thumb doubles the image file size
- Remove “align” attribute on images
- Making a thumbnail if there exist a link with. jpg or .png extension in WordPress
- Get a different size of Image thumbnail while working with custom metabox
- Saving a post, content filtering and user levels
- Imagem resolution responsive
- Slider do not add alt attribute. Cant get alt attribute from a media library!
- How do I add a nested conditional within an echo – to use a default image if there isn’t one in the post?
- Why images are disappearing on WordPress web site?
- Img alt tag showing different value then entered
- WP is showing wrong image dimensions
- How to include featured image on blog post preview?
- Uploaded Media Images on Site
- Thumbnail size keeps resetting automatically
- Delete all thumbnails & regenerate them?
- WordPress pointing animated GIF images with wrong file name upon upload (GIFs animation not working)