i added custom fields to my normal post
and delete the link of post type with :
$movies->cpt['rewrite'] = array( 'with_front' => false, 'slug' => '/' );
its ok with normal permalink :
but when change the permalink to any other, i get 404 not found .
note : i use wordpres on my localhost