Hi,
Are you referring to like server 404 errors, or WordPress and your theme load, but it shows a 404 meaning more akin to no posts found?
What are your registered post type slugs, it’s possible there’s some sort of conflict going on, but impossible for us to say with the information presented thus far.
Thread Starter
pnmark
(@pnmark)
WordPress and theme load, but it shows a 404 as in nothing found.
case-studies, careers, sectors, services, videos_old, lps, language, feedback, onepage
Hmm. None of those are listed as a reserved term, and we do a pretty good job preventing trying to re-register one.
Do you have has_archive set to true for the post type(s) in question?
Does the issue persist if you temporarily change themes to one of the defaults?
Have you done any custom code around post types for the site?
Thread Starter
pnmark
(@pnmark)
Do you have has_archive set to true for the post type(s) in question?
Just Case Studies, all the rest are no
Yes it does, I tried switching to Twenty Twenty-Four and the problem persisted.
Nothing for the post types. Just a basic hook for native posts, but that’s been in place for over a year. This issue has occured in the last few weeks.
For example, if you’re visiting https://www.mywebsite.com/careers/ and expecting to see career post type posts, but are getting a 404 error, then you’d want to have has_archive set to true because that’d be where you see the archive listing for careers.
If you’re visiting say a published single career, say https://www.mywebsite.com/careers/web-developer and seeing a 404 for that, then something is definitely going on that I don’t have any immediate answer for.