Hey,
I'm going out of my mind with setting up custom post types with pretty permalinks on wp3. It seems no matter what I try a 404 page is thrown up whenever custom permalinks are turned on.
I've created a post type called 'videos' with the following code:
add_action('init', 'post_type_videos');
function post_type_videos() {
$args = array(
'label' => __('Videos'),
'singular_label' => __('Video'),
'public' => true,
'show_ui' => true,
'hierarchical' => false,
'query_var' => false,
'menu_position' => 5,
'capability_type' => 'post',
'rewrite' => true,
'supports' => array('title', 'thumbnail', 'editor')
);
register_post_type( 'videos' , $args );
}
and a custom permalink structure of simply: /%postname%/
Even if i use one of the default permalink settings it won't work, but then if I turn them off everything bursts into life...
Can anyone shed any light on what I'm doing wrong?