Register Custom Post Types and Taxonomies in WordPress

WordPress documentation Here’s an example of how I created the CPT and custom taxonomy for the post you are reading now. While I can’t bring myself to use the old school array() syntax that the documentation advises, I don’t deviate very far from the recommended syntax.