[wp-testers] Wordpress 3.3 Beta 2: register_cpt excerpt
Matteo Luigi Turchetto
matteoluigiturchetto at gmail.com
Sun Oct 23 18:17:33 UTC 2011
Hello
Just finished the download and update to the latest night build.
post_type is buggy. I'm testing a structure like this and i cannot see
anymore the field excerpt when i add a new "recensione".
it's a new problem because Beta 1 was perfect and i was using the
following structure without problems. Keep in mind that i'm still using
the same code and same plugins.
Anyone with the same bug ?
Greetings
/* [ 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','excerpt','editor','author','thumbnail'.'comments'),
'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 );
}
More information about the wp-testers
mailing list