In your second code block change
'hierarchical' => false,
to
'hierarchical' => true,
This should solve your problem 🙂
Related Posts:
- Highlighting wp_nav_menu() Ancestor Class w/o Children in Nav Structure?
- Is there a way to get N number of WYSIWYG editors in a custom post type?
- How to get the posts of a custom taxonomy term
- Why are the comments disabled by default on my custom_post_types?
- Getting the IDs of a custom post type
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- Custom Post Type menu name
- Get Custom post with ID
- Is it OK to move admin menu items?
- Syntax to get the Nth item in a list of custom post types?
- Filter by custom Field for Custom post type Admin Listing
- Display text if current user has written 1 or more posts in a custom post type
- remove support for ‘Categories’ for a custom post type
- Display different gutenberg template from selected post attributes
- Recent comments on author page?
- How to show posts from multiple post types in a single loop? And display them separately on the same template
- WordPress custom post type Single.php?
- Adding capabilities to default roles
- Automatically Add a Category to a Custom Post Type
- Detect if 1st, 2nd or 3rd level custom page?
- Custom Permalink Tag breaks Pagination
- Display posts if a custom field value is equal to another custom field value
- Custom Fields vs Separate Table
- Add the current menu item CSS class to a custom page type archive in WordPress menu
- Display custom post data in sidebar w/ dropdown
- Using several custom fields as custom post title
- Using global $post; to get featured image for custom post via WP_Query
- Hide specific parent categories from post edit
- Return the thumbnail meta data for getter and setter
- CPT UI change custom taxonomy url
- How to create Blog Post Specific Widget
- Custom Post-Type not in admin menu
- How to call in Custom Post-Type Categories?
- get_category_parents for custom post type taxonomy
- register_post_type name character limit
- Child post with numeric only slug keeps redirecting to parent
- Are pages consuming more server resources than posts?
- Possible to add different google analytics in custom post type?
- Registering post type doesn’t show results on front-end
- How to do WP_Query with two meta fields with orderby clause
- Portfolio Page for Classic Posts
- next/previous links on custom post single a little screwy
- How to change custom post type position from backend
- Archive for a Taxonomy of a Custom Post type
- Get theme URL without printing result
- Including all post id’s of a custom post type into an array
- Dump custom post type database
- Display an authors post on a single page only when they are logged in
- Include php on a specific page template
- Create a custom post type for a photo post
- Linking to Post Types from wp-admin
- Shared terms between taxonomies
- Custom post type Shortcodes wordpress
- After creating Custom post type by user delete old one
- custom hierarchical taxonomy and custom post type list contains surplus posts
- Show category and tag link as a submenu under custom post type submenu
- How to add new post using a form to categories when categories are using as menu
- Custom wordpress loop
- Custom Post Type Archive template not being called
- adding read more link for custom post type
- How to selected value default in option list?
- Automatically add a character to field in edit post page
- Add the custom post term to the custom post title
- Display 3 recent posts from one taxonomy
- Query for bbPress replies to current topic?
- Custom post type and multi taxonomies + customize url
- Translate website without duplicate custom post
- Grouping custom wordpress post types by acf value
- Get_post_custom not fetching value from array wordpress
- Archive Post Not Showing All Post
- Get an array of the number of post per year of a custom post type (WordPress)
- Add custom template ‘sub-page’ to Custom Post type?
- Private:Autodraft post created automatically, Is that normal?
- WordPress Custom Taxonomy – If not parent term
- Need folder for CPT templates for eg: single-{post_type}.php
- Loop to display parent categories in custom taxonomy
- Add an array as post content dynamically
- pagination for a custom query
- Custom nav menu current item custom link problem
- How To Loop Through list with Custom Post Types
- Use Tags to Query Associated Multiple Posts and Get The Average Of Custom Field Values
- redirect old post type url to new structure url
- Custom Post Type + Category archive
- Customizing a plugin function using a hook
- Changing custom post_type when publishing
- one get_posts to return a number of custom posts for each meta value
- Show custom post type in archive page by category
- custom_post_type with umlaut in name
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- How do I do this?: If custom post type exists, echo it, else do not
- WordPress custom post type post and category links 404
- Count of posts with meta_key filled in?
- Get Posts From A Certain Post Type In An ID Array
- Custom post type efficiency
- One set of categories for multiple custom posts
- sidebar hierarchical menu category & custom post type
- Choose custom post type template by category
- Query order by meta value force specific tag first
- How to make a non-public post on wordpress approval?
- Quering array of post types & pagination. Articles are repeating sometimes on different pages