Custom post types permalinks not working

Your rewrite slug is set to “https://wordpress.stackexchange.com/” – that’s going to be a problem. It needs to be a valid string. By default it’s going to be ‘homepage’, the name of the custom post type, but this is where you can change it to something else (e.g. ‘homepages’) if you’re shooting for a specific URL structure.