Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm working on a recipe site that has a custom post type, recipes, with two custom taxonomies for handling recipe categories and tags. The custom post type works and so does the custom taxonomy for the categories, i.e. i can access individual posts and category pages. However, when I try to access a custom taxonomy tag page, I get the wordpress 404 page.

I don't really know how to troubleshoot this since wordpress isn't giving me any useful error codes. Any suggestions?

share|improve this question
add comment

2 Answers

I've run into odd issues with 404's around custom post types/taxonomies. Try hitting save again on the blog permalinks settings page. Strange as it sounds that cleared up my issues.

share|improve this answer
    
I've tried that but no luck. What's weird is that one custom taxonomy works, but ot the other. –  AginaDendata Jun 11 '11 at 9:06
1  
Can you edit your question and include the register_taxonomy code that you are using for both? –  Dave Konopka Jun 11 '11 at 10:52
add comment

I've run into this issues too, two time, two differents errors, first time I just go to permalink structure in the wordpress options and hit save, that was a problem witht my htaccess files, and the second time it was the way I register the slug,

Here is a complete working exemple :

/* Post type : offre_emploi */
register_post_type(
    "offre_emploi", /*Take this in note you'll need it*/
    ...

/* Register Taxonomy */
$labelsEmploisCat = array(
    'name' => _x( 'Catégories', 'post type general name' ),
    'singular_name' => _x( 'Catégorie', 'post type singular name' ),
    'add_new' => _x( 'Ajouter une catégorie', 'client' ),
    'add_new_item' => __( 'Ajouter une catégorie' ),
    'edit_item' => __( 'Modifier une catégorie' ),
    'new_item' => __( 'Modifier une catégorie' ),
    'view_item' => __( 'Voir une catégorie' ),
    'search_items' => __( 'Rechercher une catégorie' ),
    'not_found' =>  __( 'Aucune catégorie' ),
    'not_found_in_trash' => __( 'Aucune catégorie' ),
    'parent_item_colon' => ''
);

register_taxonomy(
    "proprietaires_pieces",
    array("offre_emploi"), //here goes the post type 
    array(
        "hierarchical" => true,
        "labels" => $labelsEmploisCat,
        "rewrite" => true
    )
);

Hope it's help you

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.