• Resolved josbeckley

    (@josbeckley)


    Hello,

    I’m having trouble getting my links to work without 404 errors.

    I am using 1 custom post type and no taxonomies, categories, or tags.

    I would ideally like the link to be .org/post-type/post-title

    The archive .org/post-type shows all available post titles, but when you click on them, it loads as a 404.

    I switched the permalink setting to default (plain), and can view the posts by navigating through the admin panel, but the URL is .org/?post-type=post-title

    Is there an easy remedy for this so the link will appear .org/post-type/post-title? (like adding taxonomies, etc)

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

    (@tw2113)

    The BenchPresser

    The “post name” permalinks setting should be getting that for you.

    That said, do you have any custom rewrite slug set for the post type? Or is it perhaps just / for a slug? Do you have a page named the same as the post type? If yes, it’s possible that WordPress is thinking they’re child pages and not single posts in the post type.

    Thread Starter josbeckley

    (@josbeckley)

    Hi Michael, thanks for your response!

    I have permalinks set to “post name” and receive the same issue. No custom rewrite slugs and no pages or posts with matching names. No custom CSS or code on the site.

    I have a nearly identical build on another site that works perfectly. I also deactivated all plug-ins except CPT, removed everything, and started from scratch, but no luck.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hmm, not sure at this point what else to check. My first reply covered all my ideas.

    That said, I can do a visual review of the post type settings if you provide them. I can even test them out myself on a local install.

    You can share those by visiting CPTUI Tools menu item and the “Post types” tab which should be the default you are put on. Then just copy/paste the blob of content on the right, to here and I can look them over.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘CPT URL 404 Error’ is closed to new replies.