Change slug for category name
-
Hi, I need to show the category name instead of the slug, at the ‘gallery-category’… May I have to change the ‘slug’ of the last line? can you help me?
$gallery_category = array( 'hierarchical' => true, 'labels' => array( 'name' => _x( 'Gallery Category', 'taxonomy general name' ,'theme' ), 'singular_name' => _x( 'Gallery Categories', 'taxonomy singular name','theme' ), 'search_items' => __( 'Search Categories', 'theme' ), 'all_items' => __( 'All Categories', 'theme' ), 'parent_item' => __( 'Parent Category', 'theme' ), 'parent_item_colon' => __( 'Parent Category:', 'heme' ), 'edit_item' => __( 'Edit Category', 'theme' ), 'update_item' => __( 'Update Category', 'theme' ), 'add_new_item' => __( 'Add New Category', 'theme' ), 'new_item_name' => __( 'New Category Name', 'theme' ), 'menu_name' => __( 'Category', 'theme' ), ), 'show_ui' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'gallery-category' ), );
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Change slug for category name’ is closed to new replies.