swapped get_the_ID() for $post->ID to avoid PHP notice