Glad you got it working.
Just wondering though how you “connected” the (3rd column) custom post types with the (2nd column) subcategories? I mean internally in WordPress.
Obviously the connection between column 1 and column 2 is simple (column 2 shows the subcategories of the category selected in column 1). But not sure how you get a custom post type “connected” to a subcategory?