So, on the site there is a custom post type “case-study” made by ACF post types, but it’s url is later rewritten to “projects”, also using ACF (so, nothing in functions.php and no other plugin that changes the url).
From time to time, projects archive page just reverts permalinks to /case-study/ but the posts still work on /projects so any link goes to 404.
Simple re-saving permalinks or re-saving project custom type solves it. But why does that happen? I don’t have any plugins active that work on front end, it’s a small site. Only thing I could think of is that ACF update causes it to forget the permalink, but I disabled automatic updates and it happened today again.
Any ideas?
Also, is there an easy way to change custom post type slug and keep all posts with all custom field groups and taxonomies? I remember CPT UI had a checkbox “copy everything to new type” but I’m not seeing something like that in ACF.