These function remove the slug from a permalink for a custom post type. These functions should be in functions.php in your theme and the permalink structure should be /%postname%/