fixing the colour attribute and changing $post->ID to get_the_ID