Я создал пользовательский тип записи, который не отображается должным образом в сухарях Avada. Я не уверен, что это проблема с Avada или с моей реализацией пользовательского типа записи. Перезапись URL работает, как и ожидалось, только крошки создают мне проблему. Вот фрагмент моего кода, включая таксономию.
function people_init() {
$args = array(
'label' => 'People',
'public' => true,
'show_ui' => true,
'menu_position' => 20,
'capability_type' => 'post',
'hierarchical' => true,
'rewrite' => array('slug' => 'about/people','with_front' => true),
'has_archive' => false,
'menu_icon' => 'dashicons-admin-users',
'show_in_rest' => true,
'supports' => array(
'title',
'editor',
'revisions',
'thumbnail',
'page-attributes',)
);
register_post_type( 'tickleme_people', $args );
}
add_action( 'init', 'people_init' );
function people_taxonomy() {
register_taxonomy(
'tickleme_people_tax',
'tickleme_people',
array(
'label' => 'People',
'hierarchical' => true,
'query_var' => true,
'show_in_rest' => true,
'rewrite' => array(
'slug' => 'about/people',
'with_front' => true,
'hierarchical' => true,
)
)
);
}
add_action( 'init', 'people_taxonomy');