updated version and added blank post type checking