custom taxonomy permalink 404 problem
-
All of my custom taxonomies work fine but one named “genre”. Whenever I try to select one of the genre posts, I get a 404 with pretty permalinks. I’ve tried resetting the permalinks but to no avail.
The default permalink setting works but not the pretty permalinks.
Here is my code:
// setup the genre Taxonomy add_action( 'init', 'create_genre_taxonomy', 0 ); function create_genre_taxonomy() { // Book Author Taxonomy $labels = array( 'name' => _x( 'Genre', 'taxonomy general name' ), 'singular_name' => _x( 'Genre', 'taxonomy singular name' ), 'search_items' => __( 'Search Genres' ), 'popular_items' => __( 'Popular Genres' ), 'all_items' => __( 'All Genres' ), 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit Genres' ), 'update_item' => __( 'Update Genres' ), 'add_new_item' => __( 'Add New Genre' ), 'new_item_name' => __( 'New Genre' ), 'separate_items_with_commas' => __( 'Separate genres with commas' ), 'add_or_remove_items' => __( 'Add or remove genres' ), 'choose_from_most_used' => __( 'Choose from the most used genres' ), 'menu_name' => __( 'Genres' ), ); register_taxonomy('genre','post',array( 'hierarchical' => false, 'labels' => $labels, 'show_ui' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'genre' ), )); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘custom taxonomy permalink 404 problem’ is closed to new replies.