How to have a hierarchy of custom post types and use two of them in the permalink?

You can do this with custom hierarchical taxonomy and use it for your custom post type. Register the Taxonomy area for the post type content using the init action hook: function wporg_register_taxonomy_area() { $labels = array( ‘name’ => _x( ‘Areas’, ‘taxonomy general name’ ), ‘singular_name’ => _x( ‘Area’, ‘taxonomy singular name’ ), ‘search_items’ => __( … Read more

tech