title: Wordpress: list custom post type by category or tag
body: <p>I have created a custom type, with categories and tags:</p>
  
  <pre><code>function servicios_taxonomy() {  
      register_taxonomy(  
          'servicios_categories',  //The name of the taxonomy. Name should be in slug form (must not contain capital letters or spaces). 
          'servicios',        //post type name
          array(  
              'hierarchical' =&gt; true,  
              'label' =&gt; 'Categorías servicios',  //Display name
              'query_var' =&gt; true,
              'rewrite' =&gt; array(
                  'slug' =&gt; 'servicios', // This controls the base slug that will display before each term
                  'with_front' =&gt; false // Display the category base before 
              )
          )  
      );  
  }  
  add_action( 'init', 'servicios_taxonomy');
  
  function create_posttype() {
      $args = array(
          'labels'              =&gt; array(
                                       'name' =&gt; __( 'Servicios' ),
                                       'singular_name' =&gt; __( 'Servicio' )
                                   ),
          'rewrite'             =&gt; array('slug' =&gt; 'servicios'),
          // Features this CPT supports in Post Editor
          'supports'            =&gt; array( 'title', 'editor', 'thumbnail'),
          'taxonomies'          =&gt; array('servicios_categories', 'post_tag'),
          'has_archive'         =&gt; true,
          /* A hierarchical CPT is like Pages and can have
          * Parent and child items. A non-hierarchical CPT
          * is like Posts.
          */  
          'hierarchical'        =&gt; false,
          'public'              =&gt; true,
          'show_ui'             =&gt; true,
          'show_in_menu'        =&gt; true,
          'show_in_nav_menus'   =&gt; true,
          'show_in_admin_bar'   =&gt; true,
          'menu_position'       =&gt; 20,
          'can_export'          =&gt; true,
          'has_archive'         =&gt; true,
          'exclude_from_search' =&gt; false,
          'publicly_queryable'  =&gt; true,
          'capability_type'     =&gt; 'page'
      );
  
      register_post_type( 'servicios',$args);
  
  }
  add_action( 'init', 'create_posttype' );
  </code></pre>
  
  <p>I can access all custom posts in url <code>http://example.com/servicios</code> but when adding menu entries with <em>servicios</em> categories in menu editor, I get urls in the form <code>http://example.com/category-slug/servicios</code> and it leads to a <em>sorry your search returned no results</em> page.</p>
  
  <p>The same happens when I click in a tag in this custom post type view, the link <code>http://example.com/tag/custom-post-tag/</code>.</p>
  
  <p>What do I need to do to list custom post types by category or tag?</p>
  
  <p>Thank you</p>