Title: Static Site Generator
Author: Katsushi Kawamori
Published: <strong>23 Tháng 3, 2025</strong>
Last modified: 26 Tháng 10, 2026

---

Tìm kiếm plugin

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

# Static Site Generator

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

[Tải về](https://downloads.wordpress.org/plugin/static-site-generator.2.05.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/static-site-generator/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/static-site-generator/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/static-site-generator/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/static-site-generator/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/static-site-generator/)

## Mô tả

#### Requires

 * This plugin only supports execution from the command line using [WP-CLI](https://wp-cli.org/).

#### Generate

 * Generated static site with WP-CLI command.
 * Replaces URLs or strings in content.
 * Supports custom post types.
 * Outputs the archive page for the year, month, and day.
 * Outputs category archives.
 * Outputs tag archives.
 * Outputs author archives.
 * Outputs feed.
 * Outputs categories feed.
 * Outputs tags feed.
 * Sitemap by default in WordPress.
 * Generates a file from a specified URL.

#### Copy

 * Copy the files that the following tags in the html read to the static site.

    ```
    <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

 * 1st argument(string) : `/home/www/localhost.test` : output path of full path
 * 2nd argument(string) : `https://localhost.test` : url of output homepage
 * optional argument1(string) : `--cb1="site.com" --ca1="localhost.test"` : `cb1`-
   > Original string | `ca1` -> Changed string
 * optional argument2(string) : `--cb2="/wordpress" --ca2="/"` : `cb2` -> Original
   string | `ca2` -> Changed string
 * optional argument3(bool) : `--s` : Only arguments 4-7, which directly specify
   the URL and file name, are executed.
 * optional argument4(string) : `--file1="ja/feed/index.xml" --orgurl1="https://
   site.com/ja/feed/"` : `file1` -> Output filename | `orgurl1` -> Original url
 * optional argument5(string) : `--file2="ja/category/whatsnew-ja/feed/index.xml"--
   orgur2="https://site.com/ja/category/whatsnew-ja/feed/"` : `file2` -> Output 
   filename | `orgurl2` -> Original url
 * optional argument6(string) : `--file3="feed/googleimagesitemap/index.xml" --orgurl3
   ="https://site.com/feed/googleimagesitemap/"` : `file3` -> Output filename | `
   orgurl3` -> Original url
 * optional argument7(string) : `--file4="feed/googlevideossitemap/index.xml" --
   orgur4="https://site.com/feed/googlevideossitemap/"` : `file4` -> Output filename
   | `orgurl4` -> Original url
 * optional argument8(bool) : `--c` : Outputs file copy status to the console.
 * Example1 `wp static /home/www/localhost.test https://localhost.test`
 * Example2 `wp static /home/www/localhost.test https://localhost.test --cb1="site.
   com" --ca1="localhost.test" --cb2="/wordpress" --ca2="/"`
    In the html or xml,
   the original home page is converted to “https://localhost.test”, “site.com” is
   converted to “localhost.test”, and “/wordpress” is converted to “/”.

## Ảnh màn hình

[⌊WP-CLI help screen⌉⌊WP-CLI help screen⌉[

WP-CLI help screen

[⌊WP-CLI execution screen⌉⌊WP-CLI execution screen⌉[

WP-CLI execution screen

## Cài đặt

 1. Upload `static-site-generator` directory to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## Hỏi đáp

none

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“Static Site Generator” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

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

“Static Site Generator” đã được dịch qua 1 ngôn ngữ. Cảm ơn [những người tham gia dịch](https://translate.wordpress.org/projects/wp-plugins/static-site-generator/contributors)
vì đóng góp của họ.

[Dịch “Static Site Generator” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/static-site-generator)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/static-site-generator/),
check out [SVN repository](https://plugins.svn.wordpress.org/static-site-generator/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/static-site-generator/)
qua [RSS](https://plugins.trac.wordpress.org/log/static-site-generator/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### [2.05] 2026/10/26

 * Fix – SSL issues with a local site.

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

 * Change – hook name.

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

 * Change – readme.txt.

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

 * Fix – File copy.

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

 * Added – Day archives can now be displayed.

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

 * Fix – Various processes have been reviewed.
 * Added – Tags feeds can now be displayed.

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

 * Added – Tags archives can now be displayed.
 * Fix – File copy status is not displayed on the console by default. If you wish
   to display it, please add the –c option.

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

 * Fix – Warning messages.

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

 * Fix – Translation.

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

 * Added – Author archives can now be displayed.

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

 * Added – Support for pagination within a post.

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

 * Fix – Suppresses generation when feed is suppressed.

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

 * Added – Feed output is available.
 * Fix – Fixed that the top page of the blog’s latest posts is not generated.

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

 * Added – Displays an error message and stops processing if the permalink structure
   is not appropriate.

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

 * Fix – Branching process when creating sitemap.

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

 * Fix – Handling of redirects.

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

 * Fix – Problems getting the srcset attribute.

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

 * Fix – Handling of redirects.

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

 * Fix – Problems getting the srcset attribute.

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

Initial release.

## Meta

 *  Phiên bản **2.05**
 *  Cập nhật lần cuối **3 tuần trước**
 *  Số lượt cài đặt **Ít hơn 10**
 *  Phiên bản WordPress ** 6.6 hoặc cao hơn **
 *  Đã kiểm tra lên đến **7.1.4**
 *  Phiên bản PHP ** 8.0 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/static-site-generator/) và [Japanese](https://ja.wordpress.org/plugins/static-site-generator/).
 *  [Dịch sang ngôn ngữ của bạn](https://translate.wordpress.org/projects/wp-plugins/static-site-generator)
 * Thẻ
 * [performance](https://vi.wordpress.org/plugins/tags/performance/)[security](https://vi.wordpress.org/plugins/tags/security/)
   [seo](https://vi.wordpress.org/plugins/tags/seo/)[speed](https://vi.wordpress.org/plugins/tags/speed/)
   [static](https://vi.wordpress.org/plugins/tags/static/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/static-site-generator/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/static-site-generator/reviews/)

## Những người đóng góp

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

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/static-site-generator/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://shop.riverforest-wp.info/donate/)