I'm using the plugin custom post type ui to create a post type says movie. Everything is ok. I create a movie and its viewable at
http://localhost/wordpress/movies/test/
however, when i go on
http://localhost/wordpress/movies/
I was expecting to see test as a movie in all the list of movies but nothing is displayed
Code generated by the plugin:
register_post_type('movies', array(
'label' => 'Movies',
'description' => '',
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'capability_type' => 'post',
'hierarchical' => false,
'rewrite' => array('slug' => ''),
'query_var' => true,
'supports' => array(
'title','editor','excerpt','trackbacks',
'custom-fields','comments','revisions','thumbnail','author',
'page-attributes',),
'taxonomies' => array('category','post_tag',),
'labels' => array (
'name' => 'Movies',
'singular_name' => 'Movie',
'menu_name' => 'Movies',
'add_new' => 'Add Movie',
'add_new_item' => 'Add New Movie',
'edit' => 'Edit',
'edit_item' => 'Edit Movie',
'new_item' => 'New Movie',
'view' => 'View Movie',
'view_item' => 'View Movie',
'search_items' => 'Search Movies',
'not_found' => 'No Movies Found',
'not_found_in_trash' => 'No Movies Found in Trash',
'parent' => 'Parent Movie',
),) );
'slug' => ''- why? – toscho♦ Apr 20 '12 at 13:31