Added code to add custom post type