前言介紹
- 這款 WordPress 外掛「RC Site Map Plugin」是 2018-09-03 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2024-10-18,距離現在已有 198 天。
- 外掛最低要求 WordPress 4.6 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
sitemap |
內容簡介
此外掛新增了一個 shortcode,可建立一個階層式網站地圖或特定文章列表,例如頁面、文章或自訂文章類型,每個列出的項目可以按下連結查看。該 shortcode 的名稱為:rc_sitemap。預設情況下,此 shortcode 會產生一個項目的無序列表,預設的類別為:"rc_sitemap_list"。可選的標題輸出預設的類別為:rc_sitemap_heading。
shortcode 概述
網站地圖 (rc_sitemap)
此 shortcode 用於取得和渲染一個已發布文章的清單,就像網站地圖一樣。以下是屬性:
post_type - 預設為 "page"。您可以使用 "post"、"page" 或任何文章類型的名稱。
orderby - 預設為 "menu_order"。用逗號分隔的選項清單,以排序:接受 "post_author"、"post_date"、"post_title"、"post_name","post_modified"、"post_modified_gmt"、"menu_order"、"post_parent"、"ID"、"rand" 或 "comment_count"。
order - 預設為 "ASC"。
heading_text - 預設為空,不顯示標題。
heading_tag - 預設為 "h2"。請注意,請勿包含大於/小於字符,僅包含字母數字字符,例如 p、h1、h2、h3 等。
heading_class - 預設為 'rc_sitemap_heading'。 CSS 類別新增至標題元素。
child_of - 預設為空。按 ID 只顯示單個頁面的子頁面。預設為 0(所有頁面)。請注意,僅適用於階層式文章類型。
depth - 預設為空。生成的清單中包括的頁面階層層數。接受 -1(任何深度)、0(所有頁面)、1(僅頂級頁面)和 n(到指定 n 深度的頁面)。
exclude - 預設為空。要排除的文章 ID 的逗號分隔清單。
include - 預設為空。要包含的文章 ID 的逗號分隔清單。
wrapper - 預設為 'ul'。清單的包裝元素。請注意,請勿包含大於/小於字符,僅包含字母數字字符,例如 ul、p 等。
wrapper_class - 預設為 'rc_sitemap_list'。CSS 類別新增至清單的包裝元素。
示範用法:
最基本的 shortcode 將會以遞增順序呈現一個 頁面 文章類型的項目清單,並在沒有列表標題的情況下轉換為無序 HTML 清單:
[rc_sitemap]
以下是具有自訂設置的進階用法範例,透過各種額外的屬性應用自訂設定:
[rc_sitemap post_type="your_cpt_name" orderby="date" order="DESC" heading_text="My CPT Title" heading_tag="h1" heading_class="my_custom_heading_class" wrapper="ul" wrapper_class="my_custom_wrapper_class"]
原文外掛簡介
This plugin adds a shortcode that will list a hierarchical site map or list of a particular type of post such as page, post or custom post types with clickable links to view each listed entry. The shortcode is registered using the name: rc_sitemap. The shortcode will by default render an unordered list of the entries with a default class of "rc_sitemap_list". The optional heading that it outputs has the default class of rc_sitemap_heading.
Overview of shortcode
Site map (rc_sitemap)
This shortcode is used to get and render a list of published posts like a site map. The attributes are as follows:
post_type – defaults to ‘page’. You can use ‘post’, ‘page’ or any post type name.
orderby – defaults to ‘menu_order’. Comma-separated list of options to sort by: accepts ‘post_author’, ‘post_date’, ‘post_title’, ‘post_name’, ‘post_modified’, ‘post_modified_gmt’, ‘menu_order’, ‘post_parent’, ‘ID’, ‘rand’, or ‘comment_count’.
order – defaults to ‘ASC’.
heading_text – defaults to empty, show no heading.
heading_tag – defaults to h2. Note, do not include greater than / less than characters, only the alphanumeric characters e.g. p, h1, h2, h3 etc.
heading_class – defaults to 'rc_sitemap_heading'. CSS Class added to the heading element.
child_of – defaults to empty. Display only the sub-pages of a single page by ID. Default 0 (all pages). Note, only works for hierarchical post types.
depth – defaults to empty. Number of levels in the hierarchy of pages to include in the generated list. Accepts -1 (any depth), 0 (all pages), 1 (top-level pages only), and n (pages to the given n depth).
exclude – defaults to empty. Comma-separated list of post IDs to exclude.
include – defaults to empty. Comma-separated list of post IDs to include.
wrapper – defaults to 'ul'. Wrapping element of the list. Note, do not include greater than / less than characters, only the alphanumeric characters e.g. ul, p etc.
wrapper_class – defaults to 'rc_sitemap_list'. CSS Class added to the wrapping element of the list.
Example usage:
The most basic shortcode will render a list of page post type entries as an unordered HTML list in ascending order with no list heading:
[rc_sitemap]
The following is an example of a more advanced usage with custom settings applied via the various additional attributes:
[rc_sitemap post_type="your_cpt_name" orderby="date" order="DESC" heading_text="My CPT Title" heading_tag="h1" heading_class="my_custom_heading_class" wrapper="ul" wrapper_class="my_custom_wrapper_class"]
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「RC Site Map Plugin」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.2 | 1.3 | 1.4 | trunk |
延伸相關外掛(你可能也想知道)
WP Sitemap Page 》透過這個 WordPress 外掛,您現在可以輕鬆將站點地圖加入到任何一個頁面中。只需要在您的頁面上使用簡碼 [wp_sitemap_page] 即可。這會自動生成您所有網頁和...。
Table of Contents Plus 》一款功能強大但使用者友好的外掛程式,可自動建立適用於長頁面(和自訂文章類型)的上下文索引或目錄(TOC)。此外,這款外掛還能輸出整個站點上的頁面和/或...。
PS Auto Sitemap 》PS Auto Sitemap 是一個 WordPress 外掛,自動從您的 WordPress 網站生成網站地圖頁面。, 對於初學者來說,安裝非常容易;對於專家來說,定制也非常容易。您...。
XML Sitemap & Google News 》這個外掛動態地建立遵守 XML Sitemap 及 Google News Sitemap 協議的網站地圖,支援 Multisite、Polylang 和 WPML,並不會建立靜態檔案。, 使用者可選擇啟用...。
VK All in One Expansion Unit 》這個外掛是一個集成了多種功能的強大外掛,可以幫助你的網站更強大。, 很多功能可以單獨停用。, [ 強大的小工具 ], , 最新文章 - 顯示最新文章標題的鏈接文本...。
Simple Sitemap – Create a Responsive HTML Sitemap 》簡單網站地圖 (Simple Sitemap) 是 WordPress 上最受歡迎的 HTML 網站地圖,現在使用更加簡單。你可以在文章編輯器中直接建立和預覽網站地圖! 不再需要使用難...。
Page-list 》, Advanced iFrame Pro, Page-list, 所有 Page-list 參數, 捐助, GitHub, , 短碼:, , [pagelist] - 網站上所有頁面的階層樹(用於顯示網站地圖);, [subpages...。
Sitemap 》此程式碼已經移至Page-list plugin。請刪除原先的Sitemap外掛程式,並改為安裝Page-list plugin。不用擔心,這兩個外掛程式的功能是相同的。, , 高級 iFrame ...。
Dynamic XML Sitemaps Generator for Google 》r />, 這是一個 WordPress 外掛,透過建立專屬 XML Sitemaps、HTML Sitemaps 和 Google News,大幅提升您的網站 SEO 🚀。, Google XML Sitemaps Generator, G...。
Wppao Sitemap 》WppaoSitemap 網站地圖生成外掛,由 Wppao 團隊所開發。, 現在建立網站地圖 (Sitemap) 是 SEO 所必要的,因為它是給爬蟲指路並產生網站索引的重要途徑。透過...。
SmartCrawl WordPress SEO checker, SEO analyzer, SEO optimizer 》借助 SmartCrawl,為您的網站提供更好的 SEO 優化和排名。改進關鍵字優化、XML 網站地圖,優化您的 meta 標籤、標題和描述,並在 Google 上提高您的 PageRank...。
Simple Wp Sitemap 》一個 WordPress 站點地圖外掛, Simple Wp Sitemap 是一個動態產生 XML 和 HTML 網站地圖的外掛。這兩個地圖會在有人造訪時自動更新,因此始終保持最新狀態,...。
WP Realtime Sitemap 》這是一個網站地圖的 WordPress 外掛,可以讓您輕鬆地顯示所有頁面、文章、存檔、分類和標籤,而無需進行樣板修改或在網頁上懂 HTML/PHP 知識。, 此外掛不會建...。
HTML Page Sitemap 》此簡單外掛可透過輸入簡短代碼 [html_sitemap]於網頁內容中,新增一個頁面的 HTML 網站地圖(非 XML),但不包含文章。此外掛可設定特定深度、從特定父頁面開始...。
Disable WP Sitemaps 》, 做一件事:禁用 WP 網站地圖自動產生功能。, , 啟用此外掛,即可停用自動生成的 WP 網站地圖 (在 WordPress v5.5 中新增)。, 功能:, , 輕量 - 只有一行程...。