Convert autoloads for scripts and css to global posttype class