Register Custom Post Type and Taxonomy

This is the standard code to register (create) a custom post type. For more detailed information on these and other options check out the WordPress Codex page.

Notice “hierarchical” is set to true. This will cause the taxonomy to behave like a category. False or omitted causes the taxonomy to behave like a tag.