WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ive created a custom post type and a custom taxonomy. I can create new posts and assign those taxonomies, but it returns a 404 when I go to mydomain.com/mycustomtaxonomy/termslug

Here is my code:

$labels = array(
        'name' => _x('Videos', 'post type general name'),
        'singular_name' => _x('Video', 'post type singular name'),
        'add_new' => _x('Nuevo', 'portfolio item'),
        'add_new_item' => __('Nuevo video'),
        'edit_item' => __('Editar video'),
        'new_item' => __('Nuevo video'),
        'view_item' => __('Ver videos'),
        'search_items' => __('Buscar videos'),
        'not_found' =>  __('Nothing found'),
        'not_found_in_trash' => __('Nothing found in Trash'),
        'parent_item_colon' => ''

    $args = array(
        'labels' => $labels,
        'public' => true,
        'publicly_queryable' => true,
        'show_ui' => true,
        'query_var' => true,
        'rewrite' => true,
        'capability_type' => 'post',
        'rewrite' => array("slug" => "video"),
        'hierarchical' => true,
        'menu_position' => 5,
        'supports' => array('title', 'editor', 'thumbnail', 'page-attributes')

    register_post_type( 'videos' , $args );

    // Register custom taxonomy

    register_taxonomy("familia_videos", array("videos"), array("hierarchical" => true, "label" => "Categorias de Videos", "singular_label" => "Categoria de videos", 'rewrite' => true  ));

And my permalink structure:


Ive created: taxonomy-familia_videos.php

Ive refreshed the permalinks structure, but I always get a 404.

Any help ?


share|improve this question

but it returns a 404 when I go to mydomain.com/mycustomtaxonomy

The problem is that you're expecting behavior that simply doesn't exist. Just like mysite.com/category will 404, so will mysite.com/mycustomtaxonomy

share|improve this answer

Your Answer


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.