<div class="row">
<?php
$taxonomyName = "product_tag";
if($taxonomyname = "latest-product"){
//This gets top layer terms only. This is done by setting parent to 0.
$parent_terms = get_terms($taxonomyName, array('parent' => 0, 'orderby' => 'term_id', 'hide_empty' => true, 'order' => 'ASC'));
foreach ($parent_terms as $pterm) { ?>
<div class="col-xs-3 col-md-3 padding_fix">
<a href="<?php echo get_term_link($pterm->name, $taxonomyName); ?>">
<?php
$thumbnail_id = get_woocommerce_term_meta($pterm->term_id, 'thumbnail_id', true);
// get the image URL for parent category
$image = wp_get_attachment_url($thumbnail_id);
echo '<img src="'.$image.'" alt="" width="762" height="365" />'; ?>
<h3 class="text-center" style="color: #fff;"><?php echo $pterm->name; ?></h3>
</a>
</div>
<?php } ?>
<?php } ?>
this is my above code where i want to display product with latest-product tag name.
I am not able to display product by latest-product tag.