plugin-icon

Static Site Generator

投稿者: Katsushi Kawamori·
静的サイトを生成します。
バージョン
2.04
最終更新日時
Mar 29, 2026

必須

  • このプラグインは、WP-CLI を使用したコマンドラインからの実行のみをサポートしています。

生成

  • WP-CLI コマンドで静的サイトを生成。
  • コンテンツ内の URL や文字列を置換。
  • カスタム投稿タイプに対応。
  • 年月日のアーカイブページを出力。
  • カテゴリーアーカイブを出力します。
  • タグアーカイブを出力します。
  • 投稿者アーカイブを出力します。
  • フィードを出力します。
  • カテゴリーのフィードを出力します。
  • タグのフィードを出力します。
  • WordPress のデフォルトのサイトマップ。
  • 指定した URL からファイルを生成。

コピー

  • html の以下のタグが読み取るファイルを静的サイトにコピーします。
<a href="..."> <img src="..."> <img srcset="..."> <video src="..."> <audio src="..."> <link href="..."> <script src="..."> <iframe src="..."> <source src="..."> <track src="..."> <object data="..."> <embed src="..."> <script>...</script> CSS

WP-CLI

  • 1番目の引数(文字列):/home/www/localhost.test : フルパスの出力パス
  • 2番目の引数(文字列):https://localhost.test : 出力するホームページの url
  • オプション引数1(文字列):--cb1="site.com" --ca1="localhost.test" : cb1 -> 元の文字列 | ca1 -> 変更後文字列
  • オプション引数2(文字列):--cb2="/wordpress" --ca2="/" : cb2 -> 元の文字列 | ca2 -> 変更後文字列
  • オプション引数3(論理型) : --s : URL とファイル名を直接指定する引数 4-7 のみが実行される。
  • オプション引数4(文字列):--file1="js/feed/index.xml" --orgurl1="https://site.com/ja/feed/" : file1 -> 出力ファイル名 | orgurl1 -> 元の url
  • オプション引数5(文字列):--file2="ja/category/whatsnew-ja/feed/index.xml" --orgur2="https://site.com/ja/category/whatsnew-ja/feed/" : file2 -> 出力ファイル名 | orgurl2 -> 元の url
  • オプション引数6(文字列):--file3="feed/googleimagesitemap/index.xml" --orgurl3="https://site.com/feed/googleimagesitemap/" : file3 -> 出力ファイル名 | orgurl3 -> 元の url
  • オプション引数7(文字列):--file4="feed/googlevideossitemap/index.xml" --orgur4="https://site.com/feed/googlevideossitemap/" : file4 -> 出力ファイル名 | orgurl4 -> 元の url
  • オプション引数8(論理型):--c:ファイルのコピー状況をコンソールに出力。

  • 例1 wp static /home/www/localhost.test https://localhost.test

  • 例2 wp static /home/www/localhost.test https://localhost.test --cb1="site.com" --ca1="localhost.test" --cb2="/wordpress" --ca2="/" html あるいは xml 内の、元のホームページは 「https://localhost.test 」に、「site.com 」は 「localhost.test 」に、「/wordpress 」は「/」に変換される。

無料有料プラン
インストールすることで、WordPress.com の利用規約サードパーティプラグイン利用規約に同意したことになります。
最大テスト回数
WordPress 7.0.1
このプラグインをダウンロードして、 サイトに使用できます。