first_post_link and last_post_link? [duplicate]

I solved this by using get_posts(). Credit goes to Reddit user milomilo.