• Can not display image data of the plug-in categories Woocommerce. What needs to be modified to display the images in categories Woocommerce? What code needs to be inserted into the template archive Woocommerce product category?

Viewing 4 replies - 1 through 4 (of 4 total)
  • icant speak english but you use this code

    
    $attachment_id = get_term_meta($term_id,'thumbnail_id',true); or this one
    $attachment_id = get_woocommerce_term_meta($term_id, 'thumbnail_id', true);
     $image = wp_get_attachment_image($attachment_id); 
    echo '<img src="'.$image.'">';
    
    Thread Starter staffi

    (@staffi)

    It does not display images in the plugin “Categories Multiple Images” through code

    <?php Categories_Multiple_Images::get_image( term_id, image_number, image_size, use_placeholder );?>

    • This reply was modified 7 years, 10 months ago by staffi.
    Thread Starter staffi

    (@staffi)

    Do not display images in the plugin “Categories Multiple Images” via code

    <?php Categories_Multiple_Images::get_image( term_id, image_number, image_size, use_placeholder );?>

    can you use a loop for fetch ‘src’ image

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Woocommerce’ is closed to new replies.