If you already used custom post types in wordpress 2.9, and wrote your own rewrite rules to access them you should be aware of a little problem with wordpress 3.0. If you did not explicitly set the rewrite parameter of register_post_type chances are good, that your rewrite rules will not work as expected, because the new custom post type rules will overwrite them and add quite a few 301 redirections to your page.
So in our case we needed to update:
register_post_type(array (
// unimportant setup code
'public' => false,
'publicly_queryable' => true,
'supports' => $supports
));
to
register_post_type(array (
// unimportant setup code
'public' => false,
'publicly_queryable' => true,
'supports' => $supports,
'rewrite' => false
));
to make urls behave nicely again.



Comments