Fixed logic during post saving that prevented some post types from working.