• Resolved vices

    (@vices)


    Greetings,

    I’ve been scouring these posts and google for hours. I like the plugin, but it doesnt play nice with x-theme.

    Decided to move all the posts to the “posts” category. Couldn’t figure it out.

    Long store short, I want to delete this plugin, but when I do I cant find the posts. Not even in the mysql database. I only see the x-theme demo posts there.

    Regards

    The page I need help with: [log in to see the link]

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

    (@tw2113)

    The BenchPresser

    I’m legitimately curious about what ways it doesn’t play nice, because at a technical level, CPTUI only registers the content types for use. It’s up to the site owner and the theme they’re using to do anything with the types after.

    If a theme has a bunch of fancy metaboxes and settings options for posts/pages that the user may want to have for a post type as well, it’s up to the theme to provide a way to integrate with those post types. On our side, we’re not going to be aware of how to get that integration added.

    If you moved all the posts you created with a CPTUI registered post type, to the “post” post type, then you haven’t lost the data and content by any means, it’s just not under that previous custom post type slug. That said, I also don’t know how exactly you performed the move for the content, so I can only assume it’s still there instead of lost somehow, intended or no.

    At the end of this post, it sounds like you primarily want to get rid of CPTUI and the content you created with it, correct?

    Thread Starter vices

    (@vices)

    Yes, I just want to get rid of it. Categories does fine for me. The previous developer implemented it and did a terrible job too with another “custom” theme.

    Basically most of my day has been spent trying to figure it out. I like to keep things simple, especially since it makes it easy for clients. Please take no offense.

    I tried adding the code to the functions.php but to no avail. I messed up the file and couldn’t restore so I blew up the whole site and did a full restore.

    What I would like is to know where do the posts go when I delete the plugin? I even migrated the tax to the same name category.

    The category says there are 29 posts, but when I click the number, nothing is there.

    Thoughts?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    We very intently do absolutely nothing with created content when deleting the plugin. Someone should be able to delete CPTUI from their site, and re-register the exact same post type slug on their own some other way, and be right back at where they were at. Full admittance, we don’t even delete our 2 option rows in the wp_options table, despite part of me thinking we should. It’s a mix of “we use 2 options total, which is a blip” vs “full cleanup!”

    Zero offense taken with moving away from CPTUI either. We actively help with our tools section, if the decision is reached.

    Thread Starter vices

    (@vices)

    Can you please explain to me a little more thoroughly how I can “re-register the exact same post slug on their own in some other way..”

    I am at wits end. I would like to move forward with this project.

    Thread Starter vices

    (@vices)

    Excuse the double post. What is supposed to happen when you delete the plugin? All the previous posts go back to the posts section?

    They disappear when I deactivate your plugin, but come right back when I activate (of course in their predetermined tax).

    How can I move the posts from the tax to the original posts section?

    Thread Starter vices

    (@vices)

    Never mind, used plug-in “post switcher”. Then deleted plugin.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Regarding re-registering, just go back through the same process of registering like you did at the start with CPTUI, or using a tutorial from somewhere where you provide the code yourself. The key part would be using the same slug for the post type slug field.

    When you delete the plugin without touching any posts made for a given post type, the post type simply stops getting registered and made available to use. The content in the database stays exactly as you had it. As I mentioned previously, we don’t touch the content at all when deleting the plugin. They remain in the database, but “inaccessible” because their post type isn’t getting registered.

    Yes, using the Post Type Switcher plugin from JJJ is definitely a good one to use for this task. Simple and well done plugin.

    All the best wishes for yourself and the site in the future.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Delete Plugin – Posts Disappear’ is closed to new replies.