wrapped register post types in a if statement

This needs to evaluate to false if views plugin is active.