Staatic – Static Site Generator for WordPress
Staatic turns WordPress into a practical static site generator. Keep editing posts, pages, menus, media, and settings in WordPress, then publish a static copy made of HTML, images, CSS, JavaScript, and other assets. The public site can be served without WordPress, PHP, or a database in the visitor request path. That can improve performance, reduce origin load, and shrink the public attack surface while preserving the familiar WordPress editing workflow. This is especially useful for a private-origin, public-static setup: WordPress remains available for editors and publication work, while visitors receive prebuilt files from your chosen hosting target. Staatic includes the publication workflow and deployment methods needed to run a self-hosted static WordPress site. Features of Staatic include: Crawls your WordPress site and builds a static publication from the pages and assets it discovers. Publishes from WordPress Admin, with publication status, logs, resource details, and downloadable output. Deploys to Local Directory, Amazon S3 or S3-compatible storage, GitHub, Netlify, SFTP, or a zip archive. Supports redirects, custom 404 pages, additional URLs and paths, exclude rules, and HTTP headers. Includes a WP-CLI command for command-line publication workflows. Works with WordPress Multisite, WPML, and HTTP Basic Auth protected WordPress origins. Helps separate the public site from WordPress admin, plugin runtime, and database-backed page generation. Provides integration hooks and compatibility improvements for common WordPress setups. Staatic Premium and Staatic Cloud add features such as forms integration, search integration, scheduled publications, change-based publications, and managed static WordPress hosting. The Community edition remains suitable when you want to generate and deploy a static version of a WordPress site yourself. Staatic Premium Staatic Premium supports ongoing development and adds functionality for teams that need more than the Community edition. Premium features include forms integration, search integration, scheduled publications, change-based publications, additional automation, and Staatic Cloud deployment options. For more information, visit Staatic.
Static Site Generator
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, 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. ... 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 “/”.