update course materials post type