Index.get_posts accepts a general callback