It seems that latest night build don't solve the Ticket #14589 <http://core.trac.wordpress.org/ticket/14589>

Just done a check on my test blog offline and on another one online (with latest night build). Both of them have got the common problem explained in the ticket. When you go to something like mydomain.com/tag/test/ it just display posts with the 'test' tag, not other post-types.
Problem is still there and it is solved from this code in functions.php:

function post_type_tags_fix($request) {
    if ( isset($request['tag']) && !isset($request['post_type']) )
    $request['post_type'] = 'any';
    return $request;
}
add_filter('request', 'post_type_tags_fix');

My custom post type is the following one :

/* [ CUSTOM POST TYPE RECENSIONE ] */
add_action( 'init', 'register_cpt_recensione' );
function register_cpt_recensione() {
    $labels = array(
        'name' => _x( 'Recensioni', 'recensione' ),
        'singular_name' => _x( 'Recensione', 'recensione' ),
        'add_new' => _x( 'Aggiungi Recensione', 'recensione' ),
        'add_new_item' => _x( 'Aggiunti Nuova Recensione', 'recensione' ),
        'edit_item' => _x( 'Edit Recensione', 'recensione' ),
        'new_item' => _x( 'Nuova Recensione', 'recensione' ),
        'view_item' => _x( 'View Recensione', 'recensione' ),
        'search_items' => _x( 'Search Recensioni', 'recensione' ),
        'not_found' => _x( 'No recensioni found', 'recensione' ),
'not_found_in_trash' => _x( 'No recensioni found in Trash', 'recensione' ),
        'parent_item_colon' => _x( 'Parent Recensione:', 'recensione' ),
        'menu_name' => _x( 'Recensioni', 'recensione' ),
    );
    $args = array(
        'labels' => $labels,
        'hierarchical' => true,
        'description' => 'Descrizione recensione custom post type',
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments' ),
        'taxonomies' => array( 'post_tag'),
        'public' => true,
        'show_ui' => true,
        'show_in_menu' => true,
        'show_in_nav_menus' => true,
        'publicly_queryable' => true,
        'exclude_from_search' => false,
        'has_archive' => true,
        'query_var' => true,
        'can_export' => true,
        'rewrite' => true,
        'capability_type' => 'post'
    );
    register_post_type( 'recensione', $args );
}

_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers

Reply via email to