Remove permalink for custom post type July 13, 2022 by Tarik Billa If you set the “rewrite” argument to “false” when registering the custom post type, no rewrite rules will be generated.