Trying to figure out the best way of doing this with the WP CLI.

Right now I'm running:

wp export --dir=./tmp_posts/ --post__in=2656 --with_attachments

This creates an export file, but some of the fields for images just contain nodes like:





Is is possible that importing this to the live site will actually bring over the images?

If there a better way to do this with custom post types? I use Migrate DB Pro but it seems overkill sometimes and was hoping to have a more simplistic approach for individual posts.


  • 1
    You'd need to ask somewhere that has ACF expertise, this isn't a general WordPress question – Tom J Nowell Jan 17 '19 at 18:10
  • @TomJNowell Do you know of a preferred way of doing this without a plugin? – Best Dev Tutorials Jan 17 '19 at 18:36
  • In all honesty I'd just do it and see if it works, you can try it out on a local copy or a staging site. Otherwise you will need to ask in ACF support or ACF communities, this isn't an ACF site, I'm actually leaning towards this question being offtopic as it's an ACF export/import question – Tom J Nowell Jan 17 '19 at 23:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.