• Resolved pnmark

    (@pnmark)


    I have been troubleshooting an issue we have with our website.

    I deactivated all plugins and then reactivated one at a time, flushing permalinks and clearing our cache, each time, before loading the website in a new incognito browser.

    Each time I switch CPT UI on, the Custom posts become visible and my pages start giving 404 errors.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    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

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CPT UI Causing 404 Errors on Pages’ is closed to new replies.