WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Stephanie Leary v2.6

HTML Import 2

Imports well-formed HTML files into WordPress pages.

HTML Import 2

The facts

Rating
4.3★ from 32
Active installs
5k+
Price
Free
Last updated
28 Nov 2017
Added
Jul 2009
Requires WP
3.0
Tested up to
WP 4.6.30
Downloads
297,736

Our analysis

AI-assisted

HTML Import 2 is a WordPress plugin that allows you to import well-formed static HTML files into your WordPress site. You can specify HTML tags or Dreamweaver template regions to determine which content to import, and the plugin can handle both pages and posts while preserving directory hierarchies.

This plugin is suitable for users who need to migrate content from static HTML sites to WordPress, as it provides options for importing media files, setting custom fields, and managing permalink structures. It also offers features to clean up HTML and fix internal links during the import process.

Best for: This plugin suits users looking to convert static HTML content into a WordPress format.

What it does well

  • Imports static HTML files as pages or posts
  • Preserves directory hierarchy during import
  • Allows specification of HTML tags for content selection
  • Can import linked media files to the media library
  • Provides options for custom fields and taxonomies

Where it falls short

  • Last updated in November 2017, may not support newer WordPress features
  • Requires PHP 5, which may be outdated for some servers

Verdict

HTML Import 2 offers a range of features for importing HTML files into WordPress, but its age and PHP requirements may limit its use for some users.

From the developer

Stephanie Leary's own description of HTML Import 2, lightly tidied.

Imports well-formed static HTML files into WordPress. Requires PHP 5.

This plugin will import a directory of files as either pages or posts. You may specify the HTML tag (e.g. <body>, <div id="content">, or <td width="732">) or Dreamweaver template region (e.g. ‘Main Content’) containing the content you want to import.

If importing pages, the directory hierarchy will be preserved. Directories containing the specified file types will be imported as empty parent pages (or, if an index file is present, its contents will be used for the parent page). Directories that do not contain the specified file types will be ignored.

As files are imported, the resulting IDs, permalinks, and titles will be displayed. On completion, the importer will provide a list of Apache redirects that can be used in your .htaccess file to seamlessly transfer visitors from the old file locations to the new WordPress permalinks. As of 2.0, if you change your permalink structure after you’ve imported your files, you can regenerate the redirects—the file’s old URL is stored as a custom field in the imported post.

Options:

  • import files into any post type (posts, pages, or custom post types set to public)
  • import linked media files (images, documents, etc.) to the media library
  • select content, title, and custom fields by HTML tag or Dreamweaver template region
  • remove a common phrase (such as the site name) from imported titles
  • remove the imported title from within the content area
  • upload a single file or scan a directory for files to import
  • specify file extensions to import (e.g. html, htm, php)
  • specify directories to exclude (e.g. images, css)
  • if importing pages (or any hierarchical post type), specify whether your top-level files should become top-level pages or children of an existing page
  • specify index file names (e.g. index.html, default.htm) whose contents should be used for the directory parent pages
  • set tags, categories, and custom taxonomies
  • choose status, author, and timestamp
  • use meta descriptions as excerpts
  • clean up imported HTML and strip unwanted tags and attributes in content and custom fields
  • fix internal links in imported files to match new permalinks
  • import the entire file and generate the title from the filename
  • preserve the original filename as the imported page’s slug
  • choose the date from an HTML tag or Dreamweaver region (uses strtotime(); results may vary)
  • import additional HTML tags or Dreamweaver regions as custom fields
  • option to remove imported title from within content area
  • fallbacks: if your chosen tag/area is empty or does not exist, the importer will select <body> for content and <title> for the title
  • use a custom field named ‘post_tag’ to import tags from a portion of the file

See the User Guide for details on all the options.

Thanks

Thanks to…

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for moving data.

Members

Members

94

The best WordPress membership and user role editor plugin. User Roles &amp; Capabilities editor helps you rest...

Free 300k+ installs 4.9★ (1,274)
Easy Updates Manager

Manage all your WordPress updates, including individual updates, automatic updates, logs, and loads more. This...

Free 300k+ installs 4.8★ (725)
Redux Framework

Redux is a simple, truly extensible, and fully responsive options framework for WordPress themes and plugins....

Free 900k+ installs 4.4★ (273)
PrettyLinks

🌠 Shorten, brand, and track any URL on your own domain. Keep your links — and your data — where they belong....

Free 200k+ installs 4.8★ (1,317)