前言介紹
- 這款 WordPress 外掛「Static Site Generator」是 2025-03-22 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2025-05-10,不久前才剛更新。
- 外掛最低要求 WordPress 6.6 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 8.0 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
seo | speed | static | security | performance |
內容簡介
總結:這個外掛只支持使用 WP-CLI 命令行來執行,可以生成靜態站點、替換內容中的 URL 或字串、支援自訂文章類型等功能,並可從指定 URL 生成文件。
### 問題與答案:
- 這個外掛只支持哪種方式來執行?
- 只支持使用 WP-CLI 命令行。
- 這個外掛可以做什麼?
- 可以生成靜態站點、替換內容中的 URL 或字串、支援自訂文章類型等功能。
- 如果想要生成特定 URL 的文件,該如何執行?
- 使用 `wp static` 命令,並搭配 `--file` 參數及指定的原始 URL 來執行。
原文外掛簡介
Requires
This plugin only supports execution from the command line using WP-CLI.
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 and month.
Outputs a category archive page.
Outputs feed.
Outputs categories 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.
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
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 “/”.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Static Site Generator」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.00 | 1.01 | 1.02 | 1.03 | 1.04 | 1.05 | 1.06 | 1.07 | 1.08 | 1.09 | trunk |
延伸相關外掛(你可能也想知道)
Speed Optimizer – The All-In-One Performance-Boosting Plugin 》SiteGround Optimizer 插件是由 SiteGround 開發的,可以大幅提高任何托管環境下的 WordPress 網站性能。, 最初設計用於 SiteGround 的服務器,現在已經有近 ...。
Jetpack Boost – Website Speed, Performance and Critical CSS 》使用 Jetpack Boost 優化網頁性能加速你的 WordPress 網站。輕鬆啟用一鍵優化,提升核心 Web 重要指標。, 你是否知道,更快的網站可以:, , 在 Google 搜尋排...。
Cloudflare 》這個外掛可以為您做些什麼, , 自動平台優化 (APO), 使用 Cloudflare 的自動平台優化 (APO) 外掛,可將您的 WordPress 網站加速達 300%。APO 讓 Cloudflare 可...。
10Web Booster – Website speed optimization, Cache & Page Speed optimizer 》10Web Booster 是提升網站整體效能的速度優化外掛程式,讓您專注並蓬勃發展 WordPress 網站的創意方面,同時讓我們專心於 WordPress 效能最佳化。透過 10Web ...。
NitroPack – Caching & Speed Optimization for Core Web Vitals, Defer CSS & JS, Lazy load Images and CDN 》NitroPack 是一個全方位的網站效能優化服務外掛,它包含了所有使網站加速所需的功能,包括圖片優化、代碼壓縮、快取、CDN (內容交付網路)、延遲載入等等。, ,...。
Debloat – Remove Unused CSS, Optimize JS 》這是一個針對進階使用者所設計的外掛,能夠優化CSS載入、移除未使用的CSS,以及提供defer或延遲載入JS的優化功能。, 這是提升核心網頁表現和整體網站效能的完...。
Flying Pages: Preload Pages for Faster Navigation & Improved User Experience 》Flying Pages 是一款 WordPress 外掛,可以在使用者點擊頁面前預先加載頁面,讓頁面瞬間載入。, , 它的運作方式是透過注入一小段(1KB gzipped)JavaScript ...。
WP Performance Score Booster – Optimize Speed, Enable Cache & Page Preload 》WP Performance Score Booster 可以讓網站更快,加速頁面載入時間,並立即提高服務如 GTmetrix、Pingdom、YSlow 和 PageSpeed 的網站效能分數。, 此外掛程式...。
Speed Booster Pack ⚡ PageSpeed Optimization Suite 》「Speed Booster Pack」是一款WordPress外掛,它可以讓你的網站速度更快,讓你在Google PageSpeed、GTmetrix、Pingdom、WebPageTest等主要速度測試服務上得到...。
PhastPress 》PhastPress 使用先進技術在加載時顯著改善頁面、腳本、樣式表和圖像。它設計成符合 Google PageSpeed Insights 和 GTmetrix 建議,可以顯著提高您網站的得分...。
ezCache 》EzCache 是一款易用且創新的快取外掛,能夠顯著提升您網站的速度。, 該外掛安裝簡單、易上手,不需要高級技術知識,僅需幾個簡單步驟就能大幅提高您的網站速...。
Cachify 》Cachify 通過將帖子、頁面和自訂帖子類型作為靜態內容緩存,優化您的頁面載入。您可以選擇通過數據庫、網頁服務器的硬盤驅動器(HDD)、Memcached(僅在 Ngin...。
WP Compress – Instant Performance & Speed Optimization 》ically be served an adaptive image that’s optimized for his device and screen size, ensuring a fast and high-quality browsing experience., Overall,...。
Swift Performance Lite 》——WordPress外掛介紹——, , 需要速度。WordPress的緩存和性能外掛!, 您創建了它,而我們讓它保持快速!您知道嗎……, 您只有3秒鐘的時間來給來訪者留下印象。不...。
Scripts To Footer 》n, 這個小型外掛程式可以把腳本搬至頁面底部的 JavaScript 塊中。請注意,您必須擁有使用wp_enqueue_scripts正確的外掛和佈景主題來實現此目的。, 您可以通過...。