HTML Import 2
Imports well-formed static HTML files into WordPress. Requires PHP 5.
Use com cautela
HTML Import 2 works, but test it on a staging site before relying on it in 2026. It runs on 5K+ sites, is rated 4.3/5 and was last updated 9 years ago, and scores 43/100 on our health check.
- Momentum — downloads up 21.3% vs the previous 30 days
- Nenhuma atualização em 9 anos
- Testado apenas até WordPress 4.6 (mais recente é 7.1)
Como ele se acumula?
Lado a lado em instalações, atualizações, avaliações e suporteDownloads diários
Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.
Rankings
Where HTML Import 2 stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| import | >100 |
| pages | >100 |
| static files | >100 |
| taxonomies | >100 |
| taxonomy | >100 |
Adoção da versão
Compartilhamento de sites ativos por lançamento.
Divisão de classificação
★★★★★★★★★★ 4.3 from 32 reviews
About HTML Import 2
From the official readme · v2.6Descrição
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.
Obrigado
Thanks to…
- Tom Dyson’s Wordoff.org for inspiring the Word cleanup option in 1.1.
- Dion Hulse’s Add from Server plugin and bbqiguana’s Add Linked Images To Gallery plugin, from which I borrowed a lot of the logic behind the image import feature in 2.0
Instalação
- Unzip the files and upload the plugin directory to
/wp-content/plugins/ - Ative o plugin através do menu 'Plugins' em WordPress
- Go to Settings → HTML Import to begin. You must save the settings before proceeding to Tools → Import → HTML.
Log de Changes
2.6
- Removed ancient magic runtime quotes call, wow.
- Checking for empty string instead of empty() to allow for directories named ‘0’ or similar
- Bail out earlier if XML can’t be loaded, to avoid fatal errors
- More efficient link rewriting
2.5.1
- Fixed warnings and notices related to the custom category walker.
- Fixed bug where the page parent option displayed incorrectly in sites with no published pages.
2.5
- Custom fields can now allow the same HTML tags as content
- Fixed a problem with some image paths
- Made image and link searches case-insensitive (props Clean Forest Solutions)
- Fixed some incorrectly escaped options that would trigger translations on things that shouldn’t be translated
- Page template selections are now pre-selected when returning to the options page (props Lee Fent)
2.4
- You can now specify more than one index filename (e.g. ‘index.php, default.htm’)
- New option to remove the imported title from within the 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. As a last resort, if there is no title, the original file name will become the title. - You can now use a custom field named ‘post_tag’ to import tags from a portion of the file
- UI fixes for the custom fields tab
- Bug fix: the importer now correctly recognizes absolute links to images
2.3
- New option to import an entire file’s contents instead of selecting a portion of it. (Props Shawn Zilbert.)
- New option to generate the title from the filename. (Props Shawn Zilbert.)
- New option to preserve the original filename (minus the extension) as the imported page slug. (Sponsored by NYCinsiderguide.com)
- New option to choose the date from an HTML tag or Dreamweaver region.
- New option to import custom fields.
- UI cleanup. The tabs should work a bit better.
- “asXML() on a non-object” errors should be less frequent now.
- Fixed a problem with file types that would cause blank thumbnails and images. (Props mchev2 and Carsten Bach.)
2.2
- Now imports media files other than images. Uses
rawurldecode()to remove junk like%20from file names, and thus should now handle situations where your link is something likemy%20file.docand your file is actually calledmy file.doc. - Now handles images with https srcs.
- Removed a pointless security check that was preventing people from uploading valid image files.
Para desenvolvedores
Este é o seu plugin? Mostre os números.
Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.
Best HTML Import 2 alternatives
All import plugins →FAQ
HTML Import 2: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: WordPress.org
Is HTML Import 2 free?
Yes. HTML Import 2 is free to download and use from the official WordPress.org plugin directory.
Is HTML Import 2 safe to use in 2026?
HTML Import 2 works, but test it on a staging site before relying on it in 2026. It runs on 5K+ sites, is rated 4.3/5 and was last updated 9 years ago, and scores 43/100 on our health check.
How many websites use HTML Import 2?
HTML Import 2 is active on 5K+ WordPress websites and has been downloaded 299,894 times since it launched in July 2009. It was downloaded 827 times in the last 30 days.
Does HTML Import 2 work with WordPress 7.1?
HTML Import 2 is officially tested up to WordPress 4.6.30, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was HTML Import 2 last updated?
The latest version, 2.6, was released on November 28, 2017 (9 years ago).
Who makes HTML Import 2?
HTML Import 2 is developed and maintained by Stephanie Leary.
What are the best alternatives to HTML Import 2?
The most popular alternatives to HTML Import 2 are One Click Demo Import (1M+ installs), Widget Importer & Exporter (200K+ installs) and Customizer Export/Import (100K+ installs).
Alimentado por PageForge
Um modelo e uma planilha. Uma página real para cada pesquisa.
PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.
- CSV e XLSX, mais Google Sheets em Profissional e Empresarial
- Seu próprio título, URL, SEO campos e esquema para cada página
- Funciona com o editor de blocos, Elementor, Divi e Avada
- Gratuito em WordPress.org, sem cartão de crédito









