404 on all custom post types
-
We’re running a website using CPT UI on Siteground which has a staging site feature. More info: https://my.siteground.com/support/tutorials/staging/
We noticed that when we deployed our staging copy (staging62.ourdomain.nl to ourdomain.nl) suddenly all the custom post type pages returned 404’s.
Previews of drafts did load, but they didn’t use the custom slugs (like
/news/...) they where accessible under something like/?post_type=news&p=...&preview=true&_thumbnail_id=....Weirdly enough we did not have an issue on the staging copy, it was only after deploying the staging copy to the main domain we experienced this issue.
(This will probably make the issue hard to debug)We solved it in the end by re-saving all the custom post types, but ideally that’s not something we have to do after every staging copy deploy.
Wordpress version: 5.5.1
Custom Post Type UI version: 1.8.1
The topic ‘404 on all custom post types’ is closed to new replies.