Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Activate the wordpress importer
wp plugin activate wordpress-importer --url=http://localhost/example.com/
# Iterate over all of the import files in a given folder.
for f in myfolder/*.xml; do wp import $f --authors=skip --skip=attachment --url=localhost/example.com/; done
@dev981

This comment has been minimized.

Copy link

@dev981 dev981 commented Dec 9, 2014

how to stop iteration when last xml is imported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.