removed custom function for post types that is no longer needed
fixed a notice