Add custom post type function