Created
June 26, 2017 15:43
-
-
Save justingivens/05da3e21a2cbdab035f14e6d3d998ba7 to your computer and use it in GitHub Desktop.
WP-CLI - Generate Posts with different post dates and different content
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
for i in {10..1}; do custom_date=$(date -v-${i}d "+%Y-%m-%d") && curl http://loripsum.net/api/5/headers/ul/bq | wp post generate --post_content --count=1 --post_date=$custom_date; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment