Custom post types and taxonomies are the appropriate method of doing this. It sounds like you’ve already identified the appropriate taxonomies and CPT:
- A
company
post type - A
company_type
taxonomy
register_post_type
and register_taxonomy
can do this for you. Don’t forget to re-save permalinks if you use those functions or change their parameters.
After doing this, new sections will appear in the Admin sidemenu, as well as frontend listings, and theme templates.
Further Reading
- https://developer.wordpress.org/reference/functions/register_post_type/
- https://developer.wordpress.org/reference/functions/register_taxonomy/
- https://developer.wordpress.org/plugins/post-types/
- https://developer.wordpress.org/plugins/post-types/registering-custom-post-types/
- https://developer.wordpress.org/plugins/taxonomies/working-with-custom-taxonomies/
Generators: