[WordPress] 外掛分享: Digihood HTML Sitemap

首頁外掛目錄 › Digihood HTML Sitemap
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
100+
安裝啟用
尚無評分
601 天前
最後更新
問題解決
WordPress 3.5+ v3.1.1 上架:2016-08-15

內容簡介

WeDesIn HTML Sitemap 在任何網頁中使用簡碼 [html-sitemap] 添加所有頁面、文章和自訂文章類型的清單。這是一個非常簡單的外掛,沒有任何設置頁面。該外掛的想法是您將簡碼添加到頁面中,排除任何您不想包含的文章,便完成了此功能。

注意:只有公共自訂文章類型包含在內。

要從網站地圖中排除文章,請使用“exclude”參數,以文章 ID 為值,並使用逗號分隔。

例如:[html-sitemap exclude=”42, 503″]

要排除文章類型,請使用“exclude_type”參數,以文章 ID 為值,並使用逗號分隔。

例如:[html-sitemap exclude_type=”book,product”]

自 1.03 版本以來
現在這個外掛可以列出所有附件。為此,使用[attachment-sitemap]簡碼。無法使用“排除”屬性與此簡碼。

注意:無法排除頁面。

注意 2:除了使用 style=”clear: both;” 和“whs-wrap”類將文章和頁面列表包裹起來,代碼沒有任何樣式。如果您希望對網站地圖進行自定義樣式設置,可以使用此類。

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Digihood HTML Sitemap」→ 直接安裝(推薦)

原文外掛簡介

Digihood HTML Sitemap is a plugin for simple sitemaps creation using shortcodes. Create a map of the entire web or only specified posts/pages/custom post types, taxonomies and their terms, posts under specified taxonomy, or its term, or attachments. Sitemaps are customizable by theme or custom CSS with minimal default styling.
Blacklisting options included.

Sitemap of the entire web:
Example: [html-sitemap exclude=”1,349″ exclude_type=”book,product”]
(exclude and exclude_type are optional parameters for blacklisting – it does not work for ‘page’ post type, inputs are post IDs and post type keys)

Attachment sitemap:
Example: [attachment-sitemap file-type=”application/pdf”]
(file-type is optional and uses MIME codes, default: all documents )
listing of all attachments of a specified type from wordpress admin.

Post-type sitemap:
Example: [post-type-sitemap post-type=”post”]
(post-type parameter required)
listing of all posts under a specified post-type

Posts under taxonomy or term:
Example: [tax-post-sitemap taxonomy=”category” term=”news”]
listing of all posts under specified taxonomy/term

Taxonomy terms sitemap:
Example: [tax-term-sitemap taxonomy=”post_tag”]
(taxonomy is required, optional parameter hide-empty=”true/false” – default = false)
listing of all terms under specified taxonomy

Note: No additional styling has been added to the code except style=”clear: both;” and the class “whs-wrap”, which wraps the whole list and can be used for further personal styling. We recommend adding your styling outside the plugin itself since the changes could be overwritten by future updates.

延伸相關外掛

文章
Filter
Mastodon