Changed how post types are gathered.