Add PostType class, this is based on @JeffreyWay's Easy-WordPress-Custom-Post-Types.