We can probably simplify things by using `get_posts` and just looping through the results. No point in globalizing the post either, since we get the ID and can just pass it into `get_post_meta`