correcting timber error in get_posts