前言介紹
- 這款 WordPress 外掛「HTML Import 2」是 2009-07-30 上架。
- 目前有 6000 個安裝啟用數。
- 上一次更新是 2017-11-28,距離現在已有 2713 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
- 有 32 人給過評分。
- 論壇上目前有 1 個提問,問題解答率 0%
外掛協作開發者
外掛標籤
pages | import | taxonomy | taxonomies | static files |
內容簡介
此外掛可匯入格式完整的靜態 HTML 檔案到 WordPress。需要 PHP 5 及以上版本。
此插件可將一個目錄的檔案匯入為頁面或文章。您可以指定包含您想匯入內容的 HTML 標籤(例如
、如欲匯入為頁面,目錄階層將會保留。包含指定檔案類型的目錄將會匯入為空白的母頁面(或,如果存在索引檔案,則使用其內容作為母頁面)。不包含指定檔案類型的目錄將會被忽略。
當檔案被匯入時,相應的 ID、永久連結和標題將被顯示。完成後,匯入程式將提供一個 Apache 重定向清單,供您在 .htaccess 檔案中使用,以無縫地將訪客從舊檔位置轉移到新的 WordPress 永久連結。自 2.0 版本開始,如果您在匯入檔案後更改了永久連結結構,您可以重新產生重定向清單 – 匯入檔案的舊 URL 存儲在匯入的文章的自訂欄位中。
選項:
將檔案匯入到任何文章型態中(如:文章、頁面或設為public的自定文章型態)
匯入連結的媒體檔案(如:影像和文件)到媒體庫中
按 HTML 標籤或 Dreamweaver 模板區域選取內容、標題和自訂欄位
從匯入的標題中刪除常見片語(如:網站名稱)
從內容區域中刪除匯入的標題
上傳單一檔案或掃描檔案匯入到目錄中
指定要匯入的檔案擴展名(如:html、htm、php)
指定要排除的目錄(如:圖像、CSS)
如果匯入頁面(或任何具階層性的文章型態),可指定您的頂級檔案是否成為頂級頁面或現有頁面的子頁面
指定索引檔案名稱(例如 index.html、default.htm),其內容應用於目錄母頁面
設置標籤、分類和自定稅項目
選擇狀態、作者和時間戳記
使用 Meta 描述作為摘要
清理匯入的 HTML,並刪除內容和自訂欄位中不需要的標籤和屬性
修正匯入的檔案內部連結以符合新的永久連結
匯入整個檔案並從檔名產生標題
保留原始檔名作為匯入頁面的別名
從 HTML 標籤或 Dreamweaver 區域選擇日期(使用 strtotime(),結果可能會有所不同)
匯入其他 HTML 標籤或 Dreamweaver 區域作為自訂欄位
從內容區域中刪除匯入的標題
後備方案:如果您選擇的標籤/區域是空的或不存在,匯入程式將選擇使用
使用名為「post_tag」的自訂欄位來匯入標籤
有關所有選項的詳細信息,請查閱 User Guide。
鳴謝
鳴謝:
Tom Dyson 的 Wordoff.org,其激發了 1.1 版本中 Word 清理選項的靈感。
Dion Hulse 的 Add from Server 插件和 bbqiguana 的 Add Linked Images to Gallery 插件提供了匯入媒體檔案的啟發。
這個社群中的所有使用者 - 每個人的詳細反饋和智慧意見都有助於這個插件的改進。
原文外掛簡介
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.
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
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…
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
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「HTML Import 2」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.2 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.6 | 1.01 | 1.02 | 1.03 | 1.04 | 1.11 | 1.12 | 1.13 | 1.20 | 1.21 | 1.30 | 2.0.1 | 2.0.2 | 2.5.1 | trunk |
延伸相關外掛(你可能也想知道)
Custom Post Type UI 》Custom Post Type UI 提供了易於使用的界面,以便為您的網站註冊和管理自定義文章類型和分類法。, Custom Post Type UI Extended, CPTUI 協助建立自定義內容...。
WordPress Tag, Category, and Taxonomy Manager – AI Autotagger 》axoPress allows you to show a customizable display of the terms assigned to the current post. You can choose which taxonomy and which format to dis...。
Search & Filter 》Search & Filter 是一款簡單的 WordPress 搜尋和篩選外掛程式,是 WordPress 搜尋框的進階版。, 您可以透過類別、標籤、自訂分類、文章類型、發佈日期或...。
Related Posts by Taxonomy 》此外掛可以讓你快速增加讀者的參與度,透過小工具或簡碼在側邊欄或文章內容後加入相關文章。有相同詞彙數量的文章會顯示在最前面!此外掛可以在多個種類和文...。
Radio Buttons for Taxonomies 》此外掛可將預設的分類方塊替換為使用單選按鈕的自訂 metabox…從而限制每篇文章在該分類中只能選擇一個術語。, 插件選項頁面允許使用者選擇要切換為使用...。
Custom Post Type Widgets 》此 WordPress 外掛可以添加預設的自訂文章類型小工具。, 您可以在小工具上篩選已註冊的自訂文章類型或分類法。, , 小工具描述, , 最新文章 (自訂文章類型), ...。
Term Management Tools 》請注意,此外掛需要至少 PHP 7.1。, 如果您需要重新組織標籤和分類,此外掛可以讓您更輕鬆地進行操作。它在條目管理頁面的“批次操作”下拉菜單中添加了三個新...。
Taxonomy Images 》在你的主題中顯示圖像, 有一些過濾器可以在你的主題中使用,來顯示此外掛創建的圖像關聯。請閱讀以下詳細信息。, 顯示代表術語檔案庫的單個圖像, 以下過濾器...。
PS Taxonomy Expander 》PS Taxonomy Expander 可以讓您更輕鬆地在編輯文章時使用類別、標籤和自訂分類法。, 功能, , 啟用將分類法核取方塊變成有階層的單選按鈕功能。, 讓您在 WordP...。
Posts in Page 》使用簡單的簡碼 (shortcodes),輕鬆地將一個或多個文章添加到任何頁面。, 支援類別 (categories)、標籤 (tags)、自訂文章類型 (custom post types)、自訂稅項...。
WP Term Order 》按照您的方式對分類法詞進行排序。, WP Term Order 允許使用者以數字方式對任何可見的類別、標籤或分類法詞進行排序,為其分類法提供定制排序。, 同時也請查...。
Taxonomy Metadata 》此外掛實現了分類術語的元數據基礎設施,因此您可以向標籤、類別和其他分類術語中添加自定義元數據(按鍵)。大部分代碼來自於sirzooro提交到 WordPress Core...。
Remove Taxonomy Base Slug 》如果您想要對您的自訂文章類型文章使用更好的固定連結,並使用自訂的固定連結,這個外掛程序可以協助您。, 如果該術語的slug和文章類型相同,那麼該分類的優...。
JC Submenu 》JC子選單外掛允許你自動填入自定義的文章類型、分類或子頁面到導覽選單中。此外掛容易使用,並被設計成為一個輕量化的選單擴充套件。, 透過我們的進階子選單...。
Admin Taxonomy Filter 》「Admin Taxonomy Filter」可以幫助您在管理區 (文章列表) 中透過自訂分類篩選文章或自訂文章類型。這類似於預設的按分類篩選文章。, 此外掛支援多重分類篩選...。