Hierarchical CPT
-
Hi. My CPT Producer don’t show the option to assign parents. Any idea how to fix this?
<?php register_post_type( 'producer', array( 'labels' => array( 'name' => 'Producent', ), 'description' => 'Fairtrade producenter.', 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'fair_producer' ), 'capability_type' => 'post', 'menu_icon' => 'dashicons-exerpt-view', 'has_archive' => true, 'hierarchical' => true, 'menu_position' => 26, 'taxonomies' => array( 'category' ), 'supports' => array( 'title', 'editor', 'thumbnail', 'category', 'excerpt', 'page-attributes' ) ) ); register_taxonomy( 'producer_category', array( 'producer' ), array( 'hierarchical' => true, 'labels' => array( 'name' => 'Kategorier', 'singular_name' => 'Kategori', 'menu_name' => 'Kategorier', ), 'show_ui' => true, 'show_admin_column' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'producentkategori' ), ) );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Hierarchical CPT’ is closed to new replies.