WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type UI
[resolved] Export / Import CPT (8 posts)

  1. raphaelsramos
    Member
    Posted 10 months ago #

    Team WebDevStudios,

    I wonder if you have plans to implement the functionality to export / import the CPTs, keeping its settings??

    Otherwise, it would be possible to add this functionality to the next versions?

    Sincerely,

    Raphael Ramos

    http://wordpress.org/plugins/custom-post-type-ui/

  2. Michael Beckwith
    Member
    Plugin Author

    Posted 10 months ago #

    Import we don't have right now, but definitely have it considered as a possible feature.

    Export we do have, and it's a part that got a lot of fixes with 0.8.1 today. If you go to "Manage ___" in the CPT UI menu, you'll see links for "Get Code" which should provide copy/paste-able php for your functions.php file. If this is still causing problems with quote balance and whatnot, please let me know so I can get it debugged and fixed more.

  3. raphaelsramos
    Member
    Posted 5 months ago #

    Michel,

    I try the feature 'Get Code' and it worked, but unfortunately you can not manage the CPT inside the WP admin doing this way.

    I found the data saved in the options table (cpt_custom_post_types and cpt_custom_tax_types fields). Copying and pasting these fields directly via phpMyAdmin, the CPTs are functional and still managed via WP admin, what is the best option.

    I'm checking out a way to export these options and import them again in the new site, and would be extremely grateful if this functionality was added in the next release. Meanwhile, I'm copying and pasting directly via phpMyAdmin.

    Sincerely,

  4. Michael Beckwith
    Member
    Plugin Author

    Posted 5 months ago #

    Yeah, the Get Code stuff is meant to be used if migrating away from CPTUI for good.

    If you're looking for easy import/export in the current released version, then what you're doing is the best we have until I get something else built in.

  5. IntricatePixels
    Member
    Posted 4 months ago #

    Michael, I think adding an import feature is really necessary for the plugin to be fully operational for those of us that use several environment (local dev, staging and production). I think it would be a great addition for your next plugin update!

  6. Michael Beckwith
    Member
    Plugin Author

    Posted 4 months ago #

    Well, the settings used with the plugin are just stored in the wp_options table, and the posts/taxonomies created using these settings are in their appropriate tables. Chances are you're already migrating those tables anyway.

    Regardless, I do have something in my dev branch that handles import/export, the whole next version just isn't at a done state yet.

    Hopefully it's well polished and awesome when it does come out.

  7. jynk
    Member
    Posted 1 month ago #

    A simple xml export would be ace. Even if it just used the built in wordpress options like we use for posts.

  8. Michael Beckwith
    Member
    Plugin Author

    Posted 1 month ago #

    What I have somewhere in a git repo, is a serialized data dump if I recall right, easy to copy/paste into another install that has CPTUI installed, and it'll handle the saving to the right field on import.

Reply

You must log in to post.

About this Plugin

About this Topic