Fix chapter post type
Hierarchical doesn't work as expected.
This commit is contained in:
parent
dcf41660ac
commit
404479d131
@ -215,7 +215,7 @@ function fictioneer_fcn_chapter_post_type() {
|
|||||||
'menu_icon' => 'dashicons-text-page',
|
'menu_icon' => 'dashicons-text-page',
|
||||||
'supports' => ['title', 'author', 'editor', 'excerpt', 'thumbnail', 'comments', 'revisions', 'custom-fields'],
|
'supports' => ['title', 'author', 'editor', 'excerpt', 'thumbnail', 'comments', 'revisions', 'custom-fields'],
|
||||||
'taxonomies' => ['category', 'post_tag', 'fcn_fandom', 'fcn_character', 'fcn_genre', 'fcn_content_warning'],
|
'taxonomies' => ['category', 'post_tag', 'fcn_fandom', 'fcn_character', 'fcn_genre', 'fcn_content_warning'],
|
||||||
'hierarchical' => true,
|
'hierarchical' => false, // Does not work without further adjustments
|
||||||
'public' => true,
|
'public' => true,
|
||||||
'rewrite' => array( 'slug' => 'chapter' ),
|
'rewrite' => array( 'slug' => 'chapter' ),
|
||||||
'show_in_rest' => true,
|
'show_in_rest' => true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user