Blog

ブログ

WordPress

WPテスト投稿作成のスプリクト

for i in {1..10}; do
  wp post create \
    --post_title="【お知らせ】テスト投稿 $i" \
    --post_content="<h2>見出し</h2><p>本文テキストです。本文テキストです。本文テキストです。</p>" \
    --post_status=publish
done