I used this.
<?php
$posts = get_posts(array(
\'posts_per_page\' => -1,
\'post_type\' => \'product\',
//\'orderby\' => \'title\',
//\'order\' => \'DESC\',
\'tax_query\' => array( array(
\'taxonomy\' => \'product_cat\',
\'field\' => \'slug\', // Or \'term_id\' or \'name\'
\'terms\' => \'winter-products\' // A slug term
// \'include_children\' => false // or true (optional)
)),
));
if( $posts ): ?>
<h3>Winter Products</h3>
<ul>
<?php foreach( $posts as $post ):
setup_postdata( $post );
$post_id = get_the_ID();
?>
<?php if( have_rows(\'extra_info\', $post_id) ): ?>
<li>
<strong><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></strong>
<ul>
<?php while( have_rows(\'extra_info\', $post_id) ): the_row(); ?>
<li><a href="<?php the_sub_field(\'link_url\'); ?>" target="_blank"><?php the_sub_field(\'link_title\'); ?></a></li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<?php wp_reset_postdata(); ?>
<?php endif; ?>