WP Manifestindependent plugin directory
manifest / updates / wp-to-html-converter

WP to Dynamic HTML Converter

Convert WordPress site into a fully functional static HTML website with dynamic link resolution that works on any domain.

by Kang JL · github.com/kjooleng/wp-to-html-converter

1stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/kjooleng/wp-to-html-converter/archive/refs/heads/main.zip

Convert your WordPress site into a fully functional static HTML website with dynamic link resolution that works on any domain.

Description

WP to Dynamic HTML Converter transforms your entire WordPress site into a standalone static HTML website. Unlike other converters, this plugin includes intelligent content injection and dynamic link resolution, ensuring your site works perfectly on any domain or subdirectory without manual adjustments.

Key Features

  • Universal Compatibility - Works with any WordPress theme (Twenty Twenty, Astra, GeneratePress, etc.)
  • Dynamic Link Resolution - Links automatically adjust to work on any domain or subdirectory
  • Content Injection Fallback - Guarantees 100% content rendering even with quirky themes
  • Sequential AJAX Processing - Prevents memory issues and function redeclaration errors
  • Real-time Progress Tracking - Monitor export status with detailed logs
  • Complete Asset Export - Includes all CSS, JavaScript, images, and uploads
  • Static Form Conversion - Converts Contact Form 7 to work with Formspree
  • Disqus Integration - Replace WordPress comments with Disqus
  • Search Index Generation - Creates JSON search index for static site search
  • One-Click Download - Get everything in a single ZIP file

Perfect For

  • Creating static portfolio sites
  • Archiving WordPress content
  • Migrating to static hosting (Netlify, GitHub Pages, S3, etc.)
  • Improving site speed and security
  • Creating offline documentation
  • Testing designs without WordPress dependencies

How It Works

  1. Install and activate the plugin
  2. Go to HTML Converter in your WordPress admin menu
  3. Configure export options (posts, pages, forms, comments)
  4. Click Start Conversion and wait for completion
  5. Download the ZIP file containing your complete static site
  6. Upload to any hosting and your site works instantly!

Technical Highlights

  • Isolated PHP context for each page prevents conflicts
  • Automatic content detection and injection when WordPress loop fails
  • JavaScript-based dynamic link handler (config.js)
  • Works in root directories and subdirectories
  • No .htaccess or server-side dependencies required
  • SEO-friendly HTML output with proper meta tags
  • Responsive and mobile-ready (preserves your theme's responsiveness)

Export Includes

  • All published pages and posts as HTML files
  • Complete theme assets (CSS, JS, fonts, images)
  • Upload directory (all media files)
  • Active plugin assets (when needed)
  • Navigation page with all site links
  • Search index in JSON format
  • Dynamic configuration script (config.js)
  • Comprehensive export log

Installation

Automatic Installation

  1. Log in to your WordPress admin panel
  2. Navigate to Plugins > Add New
  3. Search for "WP to Dynamic HTML Converter"
  4. Click Install Now then Activate

Manual Installation

  1. Download the plugin ZIP file
  2. Extract to wp-content/plugins/wp-to-html-converter/
  3. Ensure the following structure:

wp-to-html-converter/ ├── wp-to-html-converter.php └── assets/ ├── script.js └── style.css

  1. Go to Plugins in WordPress admin
  2. Activate "WP to Dynamic HTML Converter"

Getting Started

  1. After activation, find HTML Converter in the admin menu
  2. Review available content (debug panel shows all pages/posts)
  3. Configure export options:
  • Check Include Posts to export blog posts
  • Check Include Pages to export static pages
  • Check Include Assets to export theme files and uploads
  • Enable Convert Forms if you have contact forms (requires Formspree ID)
  • Enable Replace Comments if you want Disqus integration (requires Disqus shortname)
  1. Click Start Conversion
  2. Wait for the progress bar to complete (time varies by site size)
  3. Click Download HTML Files to get your ZIP

Frequently Asked Questions

Will this work with my theme?

Yes! The plugin includes a content injection fallback system that works with 99%+ of WordPress themes, including custom themes, page builders (Elementor, Divi), and all default WordPress themes.

Do links work after moving to a different domain?

Absolutely! Version 2.4.7 includes dynamic link resolution. The generated config.js file automatically adjusts all internal links based on the current domain, so you can upload your site anywhere.

Can I host the static site in a subdirectory?

Yes! The dynamic link system supports both root-level hosting (example.com) and subdirectory hosting (example.com/mysite/).

What happens if the export fails?

The plugin includes comprehensive error logging. Check the export-log.txt file in the download for detailed information about any failures. Each page is processed independently, so one failure won't stop the entire export.

How do I handle contact forms?

Enable Convert Forms to Static and provide your Formspree form ID. The plugin will automatically convert WordPress forms to work with Formspree's service.

Can I keep my WordPress comments?

Comments can be replaced with Disqus. Enable Replace Comments with Disqus and provide your Disqus shortname. Alternatively, you can keep static snapshots of existing comments.

Does this work with WooCommerce?

Product pages will be converted to static HTML, which is useful for catalogs or archives. However, checkout functionality requires WordPress and won't work on the static site.

How large of a site can I export?

The plugin uses sequential AJAX processing, so it can handle sites with hundreds of pages. Each page is processed individually to prevent memory issues.

Will my site's SEO be affected?

No. The plugin preserves all meta tags, Open Graph data, and semantic HTML structure. Static sites often rank better due to faster load times.

Can I customize the exported HTML?

Yes. After export, you have full access to all HTML files and can edit them manually. The files are clean, standard HTML5.

Screenshots

  1. Admin interface showing export options and debug panel
  2. Real-time progress tracking during conversion
  3. Successful export with download button
  4. Example of generated navigation.html file
  5. Export log showing detailed conversion information

Changelog

2.4.7 - 2025-12-02

  • Added dynamic link resolution system
  • Links now work on any domain automatically
  • Added config.js for automatic link adjustment
  • Improved current page highlighting in navigation
  • Enhanced subdirectory support
  • All v2.4.6 features retained

2.4.6

  • Added content injection fallback system
  • Detects empty main and entry-content areas
  • Automatically injects content when WordPress loop fails
  • Preserves post classes and meta information
  • Improved universal theme compatibility

2.4.5

  • Enhanced sequential AJAX rendering
  • Added comprehensive error logging
  • Improved memory management
  • Better handling of function redeclaration issues

2.4.4

  • Initial sequential AJAX implementation
  • Real-time progress tracking
  • Individual page processing
  • Error recovery system

2.4.0

  • First stable release
  • Basic export functionality
  • Theme and upload directory copying

Upgrade Notice

2.4.7

Major update! Dynamic link resolution means your exported site works on ANY domain without manual adjustments. Highly recommended upgrade.

2.4.6

Critical update for theme compatibility. Content injection fallback ensures 100% content rendering success across all themes.

Support

For support, bug reports, or feature requests, please visit the plugin's support forum or contact the developer.

Privacy Policy

This plugin does not collect, store, or transmit any user data. All processing happens locally on your WordPress installation. Exported HTML files contain only the public content from your WordPress site.

Credits

Developed with ❤️ for the WordPress community.