so i am querying the posts as shown below:
This returns all post of type product. But i have custom attributes on my products that have been created in wooCommerce but i cant seem find this info anywhere.
i tried using:
$thePost = get_post_custom()
i also tried:
$thePost = get_post_meta(get_the_ID)
when i print_r these i get a lot of information but i cant see the product attributes from woocommerce anywhere
the image below shows how this information is set on the product.
Does anyone know how i access this information after querying the post? specifically i need to extract the colours and sizes.