Question: (This example is edited, following a user's recommendation, considering a mistake in my table display)

I have a .csv table from where I need certain info. My table looks like this:

```
Name, Birth

James,2001/02/03 California
Patrick,2001/02/03 Texas
Sarah,2000/03/01 Alabama
Sean,2002/02/01 New York
Michael,2002/02/01 Ontario

```

From here, I would need to print only the unique birthdates, in an ascending order, like this:

```
2000/03/01
2001/02/03
2002/02/01

```

I have thought of a regular expression to identify the dates, such as:

`awk '/[0-9]{4}/[0-9]{2}/[0-9]/{2}/' students.csv`

However, I'm getting a syntax error in the regex, and I wouldn't know how to follow from this step.

Any hints?

Answer: 
You can use WC `get_woocommerce_term_meta()` and WP `wp_get_attachment_url()`. check below code.

```
<?php foreach ( $terms as $term ) { ?>
    <div class="item">
        <?php 
            $thumb_id = get_woocommerce_term_meta( $term->term_id, 'thumbnail_id', true );
            $term_img = wp_get_attachment_url(  $thumb_id ); 
        ?>
        <a href="<?php echo $term_img; ?> " rel="tag"><?php echo $term->name; ?></a>
    </div>
<?php } ?>

```
The code below is what worked for me as `woocommerce_get_term_meta` is deprecated and `thumbnail_id` doesn't exist anymore:

```
 <?php $taxonomyName = "product_tag";
$terms = get_terms(array('taxonomy' => 'product_tag', 'hide_empty' => false)); ?>
<?php foreach ( $terms as $term ) { ?>
<div class="item" > 
 <?php 
            $term_image_id = get_term_meta( $term->term_id, 'product_search_image_id', true ); 
            $term_image = wp_get_attachment_url( $term_image_id ); 
        ?>
        <img src="<?php echo $term_image; ?>" />
<a href="<?php echo get_term_link( $term->term_id, 'product_tag' ); ?> " rel="tag"><?php echo $term->name; ?></a>
    </div>
<?php } ?>

```