Created
June 9, 2014 17:17
-
-
Save stevenkword/39ec1097baf75527cda1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to stop iteration when last xml is imported