i have custom post type 'catalog' and custom taxonomy 'catalog_category' http://bosfor-alum.ru/catalog/category/okonnye-sistemy/ plugin PageNavi show me 404 error ;( help me, please i use wp_query thx functions.php
// Register Custom Post Type
function catalog() {
$labels = array(
'name' => _x( 'Товар', 'Post Type General Name', 'catalog' ),
'singular_name' => _x( 'Товар', 'Post Type Singular Name', 'catalog' ),
'menu_name' => __( 'Каталог', 'catalog' ),
'parent_item_colon' => __( 'Вложенный:', 'catalog' ),
'all_items' => __( 'Все', 'catalog' ),
'view_item' => __( 'Посмотреть', 'catalog' ),
'add_new_item' => __( 'Добавить', 'catalog' ),
'add_new' => __( 'Добавить', 'catalog' ),
'edit_item' => __( 'Изменить', 'catalog' ),
'update_item' => __( 'Обновить', 'catalog' ),
'search_items' => __( 'Найти', 'catalog' ),
'not_found' => __( 'Не найдено', 'catalog' ),
'not_found_in_trash' => __( 'Не найдено', 'catalog' ),
);
$args = array(
'label' => __( 'catalog', 'catalog' ),
'description' => __( 'Описание', 'catalog' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 5,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'catalog', $args );
}
// Hook into the 'init' action
add_action( 'init', 'catalog', 0 );
// Add new taxonomy, make it hierarchical (like categories)
$labels = array(
'name' => _x( 'Категории', 'taxonomy general name' ),
'singular_name' => _x( 'Категория', 'taxonomy singular name' ),
'search_items' => __( 'Найти' ),
'all_items' => __( 'Все' ),
'parent_item' => __( 'Вложенность' ),
'parent_item_colon' => __( 'Вложенность:' ),
'edit_item' => __( 'Изменить' ),
'update_item' => __( 'Сохранить' ),
'add_new_item' => __( 'Добавить' ),
'new_item_name' => __( 'Создать' ),
'menu_name' => __( 'Категории' ),
);
$args = array(
'hierarchical' => true,
'labels' => $labels,
'show_ui' => true,
'show_admin_column' => true,
'query_var' => true,
'rewrite' => array( 'slug' => 'catalog/category', 'with_front' => false, 'hierarchical' => true)
);
register_taxonomy( 'catalog_category', array( 'catalog' ), $args );
add_action('admin_init', 'flush_rewrite_rules');