• Resolved mcnaveen

    (@mcnaveen)


    I’m trying to create a new custom post type with the slug “wordpress” and I’m getting this error.

    Please choose a different post type name. wordpress matches an existing page slug, which can cause conflicts.

    But I was able to create category slug with “wordpress”

    • This topic was modified 4 years, 4 months ago by mcnaveen.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    The error should be pointing out the conflict here. Did you make a page that has that same slug?

    It’s a detail we added because having a page and a post type with the same slug can cause conflicts as WordPress the application wouldn’t necessarily know if visiting mysite.com/wordpress/ should show the page or the archive of the post type. Save some headaches potentially.

    You could technically get around it by temporarily renaming the page’s slug to something else, register the post type, and then re-rename the page back to what it was. I just want to make sure it’s known that the conflict above may be a factor for you.

    Thread Starter mcnaveen

    (@mcnaveen)

    Hi Michael,

    Your suggestion worked. I created a new post type with an extra character in the slug. After creating it I rename it to WordPress and it finally worked.

    Thanks a lot.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome.

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

The topic ‘Can’t create Custom Post type with slug “WordPress”’ is closed to new replies.