set_post_type method added