How do you remove slug altogether from custom post type? May 23, 2022 by Tarik Billa You have to set ‘slug’ to false and not a blank string.