Setup postdata so get_permalink works.