Description
Elbutschitos HTML Publisher generates a fully static HTML export of your WordPress posts and pages, using WordPress purely as a headless content source, and pushes the result to a deployment target of your choice: Netlify or any standard SFTP host.
Core features
- Template-driven generation – use your own HTML template with simple
###placeholder###markers (title, content, date, author, and any custom field via a flexible field-mapping syntax). Assign a different template per post or page when needed. - Two deployment targets – upload over SFTP (password or private key authentication) to any web host, or deploy straight to Netlify via its API. Batch transfer with progress feedback, or push a single page at a time from the post editor.
- Automatic URL rewriting – internal links and media URLs are automatically rewritten to root-relative paths, with additional custom find-and-replace rules available for anything else (old domains, CDN paths, and so on).
- Working contact forms on a static site – forms keep working after export. On Netlify, forms are automatically wired up for Netlify Forms. On SFTP targets, a small bundled PHP handler emails submissions, with spam-honeypot protection and lightweight client-side validation (required fields, email format) that needs no configuration for accessibility-friendly form markup.
- Navigation from a WordPress menu – keep your designer’s existing, fully styled navigation markup and let the plugin fill it with the real menu structure from a WordPress menu (multi-level menus supported), instead of maintaining two separate navigations by hand.
- Markdown export – export all content as plain
.mdfiles with YAML front matter, optionally bundling and localizing referenced images, for use with static-site generators such as Hugo, Jekyll, or Eleventy, or for archiving in a note-taking tool. - HTML cleanup rules – remove WordPress-only CSS classes, strip or change arbitrary attributes via simple selector-based rules, and inject custom per-post data into the template.
Elbutschitos HTML Publisher is aimed at agencies and developers who want the editorial convenience of WordPress combined with the speed, security, and low hosting cost of a static site.
Bundled libraries
This plugin bundles the following third-party, MIT-licensed libraries so that no separate composer install step is required:
- phpseclib (3.x) – SFTP support
- paragonie/constant_time_encoding – runtime dependency of phpseclib
- league/html-to-markdown – Markdown export
- simplehtmldom – HTML parsing/manipulation used throughout the generator
All are MIT-licensed and compatible with this plugin’s GPLv2-or-later license. See the LICENSE.txt file for the full plugin license text and the vendor/ subfolders for each library’s own license.
External services
This plugin only contacts external services that you explicitly configure and trigger yourself:
- Netlify – if you configure a Netlify site and click “Deploy” (or “Test connection”), the plugin sends your generated site files (and, for the connection test, a simple API request) to the Netlify API (
https://api.netlify.com), authenticated with the access token you provide. This happens only when you actively trigger a deploy or connection test – never automatically or in the background. Terms of Service, Privacy Policy. - Your own SFTP host – if you configure an SFTP target, the plugin connects to the host you specify to upload files, using the credentials you provide. This is a server of your own choosing, not a service operated by this plugin’s author.
No data is sent anywhere without an explicit action from you, and no usage tracking or analytics of any kind is built into this plugin.
Installation
- Upload the plugin files to the
/wp-content/plugins/content2htmldirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the “Plugins” screen in WordPress.
- Go to “HTML Publisher” in the admin menu to configure a template, choose a deployment target (SFTP or Netlify), and set up any optional features (forms, navigation, Markdown export).
- Optional but recommended: define
CONTENT2HTML_ENCRYPTION_KEYinwp-config.phpbefore entering SFTP/Netlify credentials, so stored secrets are encrypted with a key that isn’t stored in the database itself.
FAQ
-
Does this replace WordPress on my live site?
-
No. WordPress keeps running as your editorial backend. Visitors are served the generated static files instead, from Netlify or your SFTP host.
-
Does my hosting need to run PHP for the static site to work?
-
Only if you use SFTP as a target and want the built-in contact-form handler to work, since that handler is a small PHP script. Everything else (the static pages themselves) is plain HTML and works on any static host. Netlify deployments do not require PHP at all, including for forms.
-
What happens to my forms after export?
-
See the “Working contact forms on a static site” feature above – forms are automatically rewired to either Netlify Forms or a bundled PHP mail handler, depending on your chosen target.
-
Yes. The navigation feature is opt-in per navigation (main/footer) and does nothing unless explicitly enabled.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Elbutschitos HTML Publisher” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Elbutschitos HTML Publisher” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial public release: template-based static generation, SFTP and Netlify deployment, automatic and custom URL rewriting, per-post templates, working contact forms (Netlify Forms / PHP mail handler), WordPress-menu-driven navigation, Markdown export, HTML cleanup rules.