creating event custom post type