Fixing so custom post types works.