• Resolved Coop920

    (@coop920)


    Hi There,

    Great plugin, been using for years! I just recently ran into an issue where I wanted to export a CPT from one site to import that CPT to another. But I only wanted to import one of the many CPT’s I had.

    I was wondering if there is a better way to import CPT’s between sites so that it doesn’t overwrite the ones that may currently be created on an existing site.

    I understand that I should use the PHP export / import, but perhaps something could be done with a .json file, similar to how ACF does it.

    Thanks!

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

    (@tw2113)

    The BenchPresser

    The import/export parts in the Tools tab is going to override all your settings, so I wouldn’t use that with the JSON data trying to get just one new one imported in.

    The only way you could succeed with that is to merge the JSON accurately.

    It wouldn’t make re-use of the UI, but the “Get code” section does offer PHP output that you can paste into a theme’s functions.php or similar.

    Doesn’t look like I have any GitHub issues open about importing individual ones either, but that may be worth exploring.

    Thread Starter Coop920

    (@coop920)

    Right, I understand all of that. I guess what I’m saying is, similar to ACF, you can import specific field groups without overriding the others that are already present. So it would be nice to do the same here, and not worry about overriding currently registered custom post types if I wanted to import a new one.

    Thanks!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Noted, we don’t have that at the present time, but I will look into opening an issue to explore that thought.

    Thread Starter Coop920

    (@coop920)

    Sounds good, thank!

    I second this. It’s a feature that would be very helpful. Otherwise I have to painstakingly recreate each post type and taxonomies individually and hope all the right fields are correct. It’ll be super helpful to have the option to just select which post type or taxonomy you want to export without having to export all of them

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Import only 1 custom post type’ is closed to new replies.