Skip to content

Instantly share code, notes, and snippets.

@davemac
Last active July 10, 2017 04:36
Show Gist options
  • Save davemac/23642a4762e055c26a1ebe27415a3178 to your computer and use it in GitHub Desktop.
Save davemac/23642a4762e055c26a1ebe27415a3178 to your computer and use it in GitHub Desktop.
Wordpress : bash function, uses wp-cli to generate posts using https://baconipsum.com/json-api/
# Example use: bipsum 4 pages
bipsum(){
curl "https://baconipsum.com/api/?type=meat-and-filler&paras=5&format=html" | wp post generate --post_type=$2 --count=$1 --post_content;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment