• Resolved tashminaartists

    (@tashminaartists)


    Hi – I have working on a site for a client. The site already has custom post types and custom taxonomies registered. I would like to add them properly via the CPT UI plugin (using the appropriate same slug) but I get an error message saying the post type already exists. It does… because it is registered in a functions file within a special (written by original developer) plugin… but I can’t display it within the CPT UI plugin. Nor can I add it!
    I do not have any post types or taxonomies listed within the CPT UI plugin – but I cannot add them! There are posts that I want to keep, hence trying to replicate the same slug.
    Any pointers you can give me of what to check next? Huge thanks. I have checked through the forum and I believe it should be possible to add an existing CPT? The ones I have tried are “concerts” and “discography”

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

    (@tw2113)

    The BenchPresser

    First question is if this is being done on an already live site, or is it being done on a dev site?

    Second question is are you getting that error as an admin notice after submission? or perhaps just as some red text as you fill in the slug field?

    Asking because I just confirmed that you should be able to still save the values technically, if it’s just the red text below the “Post Type Slug” label.

    I’m not seeing any specific wording for “post type already exists”, but I could be wrong and just missing seeing it in our code at the moment. I do see “Slug already exists”.

    “Worst” case scenario, perhaps disable that plugin temporarily to save the versions in CPTUI and let CPTUI take over.

    Thread Starter tashminaartists

    (@tashminaartists)

    Thank you so much for such brilliant and quick support.
    Yes, it is on a test site and yes, it was the red text.
    “Slug already exists!”

    Reassured by your letting me know that I should be able to add it, I persevered. No joy to start with but then I added a “test”,completely new, CPT, left it there and then returned to trying to add the one that was already registered and had given me the error. This time I could add it! It worked!!!

    Many thanks again

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hmm…

    I wonder if it’s possibly a very edge case of the options in the database not existing yet, causing the issue, and once *something* was saved, the rest worked out.

    Regardless, glad you’re on your way at this point ??

    I know this is late, but I just had this issue as well. I’m working on my dev site, trying to add Testimonials. Since it’s the only thing I needed, I didn’t think to add another CPT. After finding this forum post, I retried to add Testimonials, and it was successful.

    I’m using “Custom Post Type UI 1.7.4” on WP 5.4.1.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding post type which already exists’ is closed to new replies.