Created
October 8, 2013 22:23
-
-
Save davekellam/6892838 to your computer and use it in GitHub Desktop.
Bash script for batch importing of WordPress XML files via WP-CLI
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
#!/bin/bash | |
FILES=/path/to/files/* | |
for file in $FILES | |
do | |
echo "Processing $file..." | |
wp import $file --authors=skip | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment