handle situation where post type is not set