0

这是我的帖子的注册分类功能。

add_action( 'init', 'marka_taxonomies', 0 );
function marka_taxonomies() 
{

  $labels = array(
    'name'                => _x( 'Markalar', 'taxonomy general name' ),
    'singular_name'       => _x( 'Marka', 'taxonomy singular name' ),
    'search_items'        => __( 'Markalarda Ara' ),
    'all_items'           => __( 'Tüm Markalar' ),
    'parent_item'         => __( 'Alt Marka Kategorisi' ),
    'parent_item_colon'   => __( 'Üst Marka Kategorisi:' ),
    'edit_item'           => __( 'Markayı Düzenle' ), 
    'update_item'         => __( 'Markayı Güncelle' ),
    'add_new_item'        => __( 'Yeni Marka Ekle' ),
    'new_item_name'       => __( 'Yeni Marka Adı' ),
    'menu_name'           => __( 'Marka' )
  );  

  $args = array(
    'hierarchical'        => true,
    'labels'              => $labels,
    'show_ui'             => true,
    'show_admin_column'   => true,
    'query_var'           => true,
    'rewrite'             => array( 'slug' => 'marka' )
  );

  register_taxonomy( 'marka', array( 'post' ), $args );


}

Thnik everthing 是正常的,但 taxonomy-marka.php 不起作用。我仍然得到 404 Not found on title。我的分类档案页面上没有任何内容。在我错的地方我应该怎么做?

4

1 回答 1

0

当我更新我的永久链接选项时,该taxonomy-marka.php页面列出了我的帖子。

于 2013-05-24T23:22:27.873 回答