Last active
August 3, 2018 16:26
-
-
Save mgratch/1e06984b3a11c7bd36c65e19b852fee7 to your computer and use it in GitHub Desktop.
create 25 posts with fake yet identical content, using wp-cli, pipes, curl, wget, xargs, npm json
This file contains hidden or 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
// create 25 posts with fake & identical content | |
curl http://loripsum.net/api/5 | \ | |
wp post generate --post_content --count=25 --format=ids | \ | |
xargs -d ' ' -I % wp post meta add % _thumbnail_id \ | |
$(wp media import \ | |
$(wget -O - -q -t 1 http://api.giphy.com/v1/gifs/random?api_key=dc6zaTOxFJmzC | \ | |
json data.images.original.url) --porcelain); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment