• I’m attempting to change the slug of a custom post type back to what it was originally but getting the following error.
    ‘You cannot use this slug because it is already used or a reserved word. Please choose a different slug.’

    The slug I want to use is not already used and is not a reserved keyword. If I go to site.com/the-slug I get a 404 page, and if I go to the page of the currently configured slug I get a blank page.

    I want to reset the slug to what it was originally. I have deleted the post type and recreated it with the same details (except the slug which wasn’t allowed), and refreshed the permalinks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anonymous User 14808221

    (@anonymized-14808221)

    This is usually due to the slug being used else where already.
    This can be a page, post type, or well, a reserved word.

    What is the slug you try to use?

    Also, a blank page is usually due to a fatal error.
    Pleaes activate WP Debug to see what the error is and let me know.

    Thread Starter alphaluma

    (@alphaluma)

    The slug in question is boats.

    By blank page I mean all theme parts load, just the content area is completely empty.

    I have worked around the issue by not using a custom post type for boats, instead simply rewriting the child post types’ URL to be boats/child

    Now my issue is that all ‘new boats’ (a child post type) URLs do not resolve to a page, giving a ‘Nothing Found’ page.

    image png 3360-106
    And the page for this new boat:
    image png 3360-107

    Anonymous User 14808221

    (@anonymized-14808221)

    The issue with the unallowed Slug should not happen.

    That is where we have to hook in.

    Rewriting in Types Custom post Types is not a dynamic rewrite, it’s a prepend-slug.

    If your previous Post type had a slug “boats” and your new post type has another slug, they will not appear anymore, you will loose all those posts.

    Please contact us here (it’s a free subscription)to solve this problem, we need to login or get a Site’s Snapshot

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Slug unusable on custom post type.’ is closed to new replies.