Наносить Короче говоря, я пытаюсь получить категорию таможенный пост типа, чтобы показать, где он говорит: «проект-вещь», как вы можете увидеть HEREТАМОЖЕННЫЙ ПОСТ Тип Slug Rewrite Вопросы
Я предполагаю, что это имеет что-то делать с тем, как я зарегистрировал собственный почтовый тип, например, как в этом коде:
<?php
add_action('init', 'register_posts');
function register_posts() {
register_post_type('team_post',
array(
'labels' => array(
'name' => __("Team" ,"um_lang"),
'singular_name' => __("Team" ,"um_lang")
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => "project_item", 'with_front' => TRUE),
'supports' => array('title','editor','thumbnail','page-attributes')
)
);
register_post_type('project_post',
array(
'labels' => array(
'name' => __("Projects","um_lang"),
'singular_name' => __("Project" ,"um_lang")
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => "project_item", 'with_front' => TRUE),
'supports' => array('title','editor','thumbnail','page-attributes')
)
);
register_taxonomy('project_category',array (
0 => 'project_post',
),array('hierarchical' => true, 'label' => __('Projects Category',"um_lang"),'show_ui' => true,'query_var' => true,'singular_label' => __('Projects Category',"um_lang")));
}
?>
В последнее время я сталкиваюсь этот вопрос. ! ** решаемые ** [# 188834] [1] [1]: http://wordpress.stackexchange.com/questions/94817/add-category-base-to-url-in-custom -post-type-taxonomy/188834 # 188834 – maheshwaghmare