Cleaned up post type handling. Removed unnecessary code.