Title: Static Site Generator
Author: Katsushi Kawamori
Published: <strong>2025年3月23日</strong>
Last modified: 2026年8月16日

---

プラグインを検索

![](https://ps.w.org/static-site-generator/assets/icon-256x256.png?rev=3260419)

# Static Site Generator

 作者: [Katsushi Kawamori](https://profiles.wordpress.org/katsushi-kawamori/)

[ダウンロード](https://downloads.wordpress.org/plugin/static-site-generator.2.04.zip)

 * [詳細](https://ja.wordpress.org/plugins/static-site-generator/#description)
 * [レビュー](https://ja.wordpress.org/plugins/static-site-generator/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/static-site-generator/#installation)
 * [開発](https://ja.wordpress.org/plugins/static-site-generator/#developers)

 [サポート](https://wordpress.org/support/plugin/static-site-generator/)

## 説明

#### 必須

 * このプラグインは、[WP-CLI](https://wp-cli.org/) を使用したコマンドラインからの
   実行のみをサポートしています。

#### 生成

 * 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

 * １番目の引数(文字列)：`/home/www/localhost.test` : フルパスの出力パス
 * ２番目の引数(文字列)：`https://localhost.test` : 出力するホームページの url
 * オプション引数１(文字列)：`--cb1="site.com" --ca1="localhost.test"` : `cb1` -
   > 元の文字列 | `ca1` -> 変更後文字列
 * オプション引数２(文字列)：`--cb2="/wordpress" --ca2="/"` : `cb2` -> 元の文字列
   | `ca2` -> 変更後文字列
 * オプション引数３(論理型) : `--s` : URL とファイル名を直接指定する引数 4-7 のみ
   が実行される。
 * オプション引数４(文字列)：`--file1="js/feed/index.xml" --orgurl1="https://site.
   com/ja/feed/"` : `file1` -> 出力ファイル名 | `orgurl1` -> 元の url
 * オプション引数５(文字列)：`--file2="ja/category/whatsnew-ja/feed/index.xml" --
   orgur2="https://site.com/ja/category/whatsnew-ja/feed/"` : `file2` -> 出力ファイル
   名 | `orgurl2` -> 元の url
 * オプション引数６(文字列)：`--file3="feed/googleimagesitemap/index.xml" --orgurl3
   ="https://site.com/feed/googleimagesitemap/"` : `file3` -> 出力ファイル名 | `
   orgurl3` -> 元の url
 * オプション引数７(文字列)：`--file4="feed/googlevideossitemap/index.xml" --orgur4
   ="https://site.com/feed/googlevideossitemap/"` : `file4` -> 出力ファイル名 | `
   orgurl4` -> 元の url
 * オプション引数８(論理型)：`--c`：ファイルのコピー状況をコンソールに出力。
 * 例１ `wp static /home/www/localhost.test https://localhost.test`
 * 例２ `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 」は「/」に変換される。

## スクリーンショット

[⌊WP-CLI ヘルプ画面⌉⌊WP-CLI ヘルプ画面⌉[

WP-CLI ヘルプ画面

[⌊WP-CLI 実行画面⌉⌊WP-CLI 実行画面⌉[

WP-CLI 実行画面

## インストール

 1. `/wp-content/plugins/`ディレクトリ以下に`static-site-generator`ディレクトリをアップ
    ロードします。
 2. WordPress の「プラグイン」メニューからプラグインを有効化してください

## FAQ

ありません

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

Static Site Generator はオープンソースソフトウェアです。以下の人々がこのプラグイン
に貢献しています。

貢献者

 *   [ Katsushi Kawamori ](https://profiles.wordpress.org/katsushi-kawamori/)

“Static Site Generator” は1ロケールに翻訳されています。 [翻訳者](https://translate.wordpress.org/projects/wp-plugins/static-site-generator/contributors)
のみなさん、翻訳へのご協力ありがとうございます。

[“Static Site Generator” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/static-site-generator)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/static-site-generator/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/static-site-generator/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/static-site-generator/)
を [RSS](https://plugins.trac.wordpress.org/log/static-site-generator/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### [2.04] 2025/11/16

 * 変更 – フック名。

#### [2.03] 2025/05/20

 * 変更 – readme.txt。

#### [2.02] 2025/05/19

 * 修正 – ファイルコピー。

#### [2.01] 2025/05/17

 * 追加 – 日にちアーカイブを出力するようになりました。

#### [2.00] 2025/05/16

 * 修正 – 様々な処理を見直しました。
 * 追加 – タグフィードを出力するようになりました。

#### [1.13] 2025/05/12

 * 追加 – タグアーカイブを出力するようになりました。
 * 修正 – ファイルコピーの状態は、デフォルトではコンソールに表示されません。表示
   したい場合は、–c オプションを付けてください。

#### [1.12] 2025/05/11

 * 修正 – Warning メッセージ。

#### [1.11] 2025/05/11

 * 修正 – 翻訳。

#### [1.10] 2025/05/11

 * 追加 – 投稿者アーカイブを出力するようになりました。

#### [1.09] 2025/05/10

 * 追加 – 投稿内のページネーションに対応しました。

#### [1.08] 2025/05/10

 * 修正 – フィードが抑制されている際に生成を抑制するようにしました。

#### [1.07] 2025/05/09

 * 追加 – フィード出力が可能です。
 * 修正 – ブログの最新記事のトップページが生成されないのを修正。

#### [1.06] 2025/03/31

 * 追加 – パーマリンク構造が適切でない場合、エラーメッセージを表示し、処理を停止
   します。

#### [1.05] 2025/03/29

 * 修正 – サイトマップ作成時の分岐処理。

#### [1.04] 2025/03/28

 * 修正 – リダイレクトの処理。

#### [1.03] 2025/03/27

 * 修正 – srcset 属性の取得の問題。

#### [1.02] 2025/03/26

 * 修正 – リダイレクトの処理。

#### [1.01] 2025/03/25

 * 修正 – srcset 属性の取得の問題。

#### [1.00] 2025/03/23

初回リリース。

## メタ

 *  バージョン **2.04**
 *  最終更新日 **2か月前**
 *  有効インストール数 **10未満**
 *  WordPress バージョン ** 6.6またはそれ以降 **
 *  検証済み最新バージョン: **7.1.3**
 *  PHP バージョン ** 8.0またはそれ以降 **
 *  言語
 * [English (US)](https://wordpress.org/plugins/static-site-generator/)、[Japanese](https://ja.wordpress.org/plugins/static-site-generator/).
 *  [プラグインを翻訳](https://translate.wordpress.org/projects/wp-plugins/static-site-generator)
 * タグ
 * [performance](https://ja.wordpress.org/plugins/tags/performance/)[security](https://ja.wordpress.org/plugins/tags/security/)
   [seo](https://ja.wordpress.org/plugins/tags/seo/)[speed](https://ja.wordpress.org/plugins/tags/speed/)
   [static](https://ja.wordpress.org/plugins/tags/static/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/static-site-generator/advanced/)

## 評価

レビューはまだ送信されていません。

[Your review](https://wordpress.org/support/plugin/static-site-generator/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/static-site-generator/reviews/)

## 貢献者

 *   [ Katsushi Kawamori ](https://profiles.wordpress.org/katsushi-kawamori/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/static-site-generator/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](https://shop.riverforest-wp.info/donate/)