站點地圖
外掛Plugin描述
代碼移至頁面列表外掛Plugin 請,刪除Sitemap外掛Plugin並安裝頁面列表外掛Plugin。不要害怕,這些外掛Plugin的功能是相同的。
Silver Bullet Pro |
頁面列表 |
所有頁面列表參數 |
捐贈 |
GitHub
短代碼:
[網頁列表] – 網站上所有頁面的分層樹(對於顯示網站的站點地圖); [subpages] – 當前頁面的子頁面的分層樹; [兄弟姐妹] – 當前頁面的兄弟頁面的分層樹; [pagelist_ext] – 包含精選圖片和摘錄的頁面列表;帶有附加參數的
示例:
[pagelist child_of =“4”depth =“2”exclude =“6,7,8”]
[pagelist_ext child_of =“4”不包括=“6,7,8”image_width =“50”image_height =“50”]
所有頁面列表參數
有用:
Silver Bullet Pro – 以智能方式加速和保護WordPress 反垃圾郵件專業版 – 在評論中阻止垃圾郵件
[頁面列表]的參數,[subpages]和[siblings]:
[pagelist] – 默認顯示所有頁面的列表作為分層列表; [subpages] – 默認顯示當前頁面的子頁面列表作為分層列表; [兄弟姐妹] – 默認顯示siblin列表g頁面作為分層列表到當前頁面; 深度 – 表示頁面層次結構中要包含多少級別,默認深度為無限制(深度= 0),但您可以這樣指定: [頁面列表深度=“3”]
;如果要顯示平面列表(不是分層樹),可以使用此短代碼: [pagelist depth =“ - 1”]
; child_of – 如果要顯示特定頁面的子頁面,可以使用此短代碼: [pagelist child_of =“4”]
其中 4
是ID具體頁面;如果要顯示當前頁面的子頁面,可以使用以下短代碼: [subpages]
或 [pagelist child_of =“current”]
或 [pagelist child_of =“this “]
;如果要顯示當前頁面的兄弟頁面,可以使用以下短代碼: [兄弟姐妹]
或 [pagelist child_of =“parent”]
; 排除 – 如果要從列表中排除某些頁面,可以使用此短代碼: [pagelist exclude =“6,7,8”]
其中排除
參數接受以逗號分隔的頁面ID列表;您可以使用以下短代碼排除當前頁面: [pagelist exclude =“current”]
; exclude_tree – 如果要從列表中排除頁面樹,可以使用此短代碼: [pagelist exclude_tree =“7,10”]
其中 exclude_tree
參數接受以逗號分隔的頁面ID列表(將排除所有這些頁面及其子頁面); 包括 – 如果您想將某些頁麵包含在頁面列表中,您可以使用此短代碼: [pagelist include =“6,7,8”]
其中包含
參數接受以逗號分隔的頁面ID列表; title_li – 如果要指定可以使用的頁面列表的標題是短代碼: [pagelist title_li =“< h2>頁面列表< / h2>”]
;默認情況下沒有標題(title_li =“”); 數字 – 如果要指定要包含在頁面列表中的頁數,可以使用此短代碼: [pagelist number =“10”]
;默認情況下,數字是無限的(數字=“”); offset – 如果您想要傳遞(或替換)某些頁面,可以使用此短代碼: [pagelist offset =“5”]
;默認情況下沒有偏移量(offset =“”); meta_key – 如果要包含具有此自定義字段鍵的頁面,可以使用此短代碼: [pagelist meta_key =“metakey”meta_value =“metaval”]
; show_date – 如果您想顯示頁面的日期,可以使用此短代碼: [pagelist show_date =“created”]
;您可以將此值用於 show_date
參數:created,modified,updated; menu_order – 如果要根據要排序的內容指定列,可以使用此短代碼: [pagelist sort_column =“menu_order”]
;默認情況下,訂單列為 menu_order
和 post_title
(sort_column =“menu_order,post_title”);您可以將此值用於 sort_column
參數:post_title,menu_order,post_date(按創建時間排序),post_modified(按上次修改時間排序),ID,post_author(按頁面作者的數字ID排序),post_name (按頁面排序); sort_order – 如果要更改頁面列表的排序順序(升序或降序),可以使用此短代碼: [pagelist sort_order =“desc”]
;默認情況下,sort_order是 asc
(sort_order =“asc”);您可以將此值用於 sort_order
參數:asc,desc; link_before – 如果要在鏈接標記內指定鏈接文本之前的文本或html,可以使用此短代碼: [pagelist link_before =“< span>”]
;您只能在富文本編輯器的 HTML
選項卡中指定html標記; link_after – 如果要指定鏈接標記內鏈接文本後面的文本或html,可以使用此短代碼: [pagelist link_after =“< / span>”]
;您只能在富文本編輯器的 HTML
選項卡中指定html標記; class – 如果要為頁面列表指定CSS類,可以使用此短代碼: [pagelist class =“listclass”]
;默認情況下,該類為空(class =“”);
[pagelist_ext]的參數:
[pagelist_ext] – 默認顯示當前頁面的子頁面列表;但如果沒有子頁面,則會顯示所有頁面; show_image – 顯示或隱藏特色圖片 [pagelist_ext show_image =“0”]
; “show_image”的優先級高於“show_first_image”;默認情況下:show_image =“1”; show_first_image – 如果沒有特色圖片,則顯示或隱藏內容中的第一張圖像 [pagelist_ext show_first_image =“1”]
;默認情況下:show_first_image =“0”; show_title – 顯示或隱藏標題 [pagelist_ext show_title =“0”]
;默認情況下:show_title =“1”; show_content – 顯示或隱藏內容 [pagelist_ext show_content =“0”]
;默認情況下:show_content =“1”; more_tag – 如果您想在更多標籤之前和之後輸出所有內容,請使用此短代碼: [pagelist_ext more_tag =“0”]
;這個參數不會在內容的末尾添加“more-link”,它只是削減了con更多標籤之前的帳篷; “more_tag”參數的優先級高於“limit_content”;默認情況下,more_tag已啟用(more_tag =“1”)並且僅顯示更多標記之前的內容; limit_content – 內容受“more-tag”限制(如果存在)或“limit_content”參數 [pagelist_ext limit_content =“100”]
;默認情況下:limit_content =“250”; image_width – 圖像的寬度 [pagelist_ext image_width =“80”]
;默認情況下:image_width =“50”; image_height – 圖像的高度 [pagelist_ext image_height =“80”]
;默認情況下:image_height =“50”; child_of – 如果要顯示特定頁面的子頁面,可以使用此短代碼: [pagelist_ext child_of =“4”]
其中 4
是ID具體頁面;默認情況下,它顯示當前頁面的子頁面; parent – 如果您只想顯示特定頁面的子頁面,可以使用此短代碼: [pagelist_ext parent =“4”]
其中 4
是ID特定頁面和深度將只有一個級別;默認為parent =“ – 1”,深度無限制; sort_order – 如果要更改頁面列表的排序順序(升序或降序),可以使用此短代碼: [pagelist_ext sort_order =“desc”]
;默認情況下:sort_order =“asc”;您可以將此值用於 sort_order
參數:asc,desc; sort_column – 如果要根據要排序的內容指定列,可以使用此短代碼: [pagelist_ext sort_column =“menu_order”]
;默認情況下,訂單列是 sort_column
和 post_title
(sort_column =“menu_order,post_title”);你可以e sort_column
參數的值:post_title,menu_order,post_date(按創建時間排序),post_modified(按上次修改時間排序),ID,post_author(按頁面作者的數字ID排序),post_name(排序by page slug); 分層 – 顯示其父頁面下方的子頁面 [pagelist_ext hierarchical =“0”]
;默認情況下:hierarchical =“1”; 排除 – 如果要從列表中排除某些頁面,可以使用此短代碼: [pagelist_ext exclude =“6,7,8”]
其中排除
參數接受以逗號分隔的頁面ID列表; exclude_tree – 如果要從列表中排除頁面樹,可以使用此短代碼: [pagelist_ext exclude_tree =“7,10”]
其中 exclude_tree
參數接受以逗號分隔的頁面ID列表(將排除所有這些頁面及其子頁面); 包括 – 如果您想將某些頁麵包含在頁面列表中,您可以使用此短代碼: [pagelist_ext include =“6,7,8”]
其中包含
參數接受以逗號分隔的頁面ID列表; meta_key – 如果要包含具有此自定義字段鍵的頁面,可以使用此短代碼: [pagelist_ext meta_key =“metakey”meta_value =“metaval”]
; 作者 – 僅包括給定作者編寫的頁面 [pagelist_ext authors =“6,7,8”]
; 數字 – 如果要指定要包含在頁面列表中的頁數,可以使用此短代碼: [pagelist_ext number =“10”]
;默認情況下,數字是無限的(數字=“”); offset – 如果您想要傳遞(或替換)某些頁面,可以使用此短代碼: [pagelist_ext offset =“5”]
;默認那裡沒有偏移(offset =“”); post_type – [pagelist_ext post_type =“page”]
; post_status – [pagelist_ext post_status =“publish”]
; class – 如果要為頁面列表指定CSS類,可以使用此短代碼: [pagelist_ext class =“listclass”]
;默認情況下,該類為空(class =“”); strip_tags – 如果要輸出帶標籤的內容,請使用以下短代碼: [pagelist_ext strip_tags =“0”]
;默認情況下,strip_tags已啟用(strip_tags =“1”); strip_shortcodes – 如果要輸出帶有短代碼的內容,請使用以下短代碼: [pagelist_ext strip_shortcodes =“0”]
;默認情況下,啟用strip_shortcodes(strip_shortcodes =“1”)並刪除所有已註冊的短代碼; show_child_count – 如果要顯示子計數,可以使用此短代碼: [pagelist_ext show_child_count =“1”]
;默認情況下,child_count被禁用(show_child_count =“0”);如果show_child_count =“1”,但子頁數= 0,則子計數未顯示; child_count_template – 如果要指定child_count的模板,可以使用此短代碼: [pagelist_ext show_child_count =“1”child_count_template =“Subpages:%child_count%”]
;默認情況下,child_count_template =“子頁面:%child_count%”; show_meta_key – 如果要顯示元鍵,可以使用此短代碼: [pagelist_ext show_meta_key =“your_meta_key”]
;默認情況下,show_meta_key為空(show_meta_key =“”);如果啟用了show_meta_key,但meta_value為空,則不顯示meta_key; meta_template – 如果要指定元模板,可以使用此短代碼: [pagelist_ext show_meta_key =“your_meta_key”meta_template =“Meta:%meta%”]
;默認情況下meta_template =“%meta%”;
截圖


安裝
安裝並激活外掛Pluginpageadd短代碼到頁面的外掛Plugin: [pagelist]
, [subpages]
, [兄弟姐妹]
, [pagelist_ext]
常見問題解答
安裝說明安裝並激活外掛Pluginpageadd短代碼到頁面的外掛Plugin: [pagelist]
, [subpages]
, [兄弟姐妹]
, [pagelist_ext]
如何顯示帖子列表?
要顯示您可以使用的帖子列表列表類別帖子外掛Plugin。
短信的功能基於什麼?
Shortcodes [pagelist],[subpages],[siblings]基於 wp_list_pages(’title_li =’)功能。
Shortcode [pagelist_ext]基於 get_pages()函數。
[pagelist],[subpages]和[siblings]有什麼區別?
Shortcodes [pagelist],[subpages]和[siblings]接受相同的參數。唯一的區別是[subpages]和[siblings]不接受 child_of
參數,因為[subpages]顯示當前頁面的子頁面,[siblings]顯示父頁面的子頁面。
如何創建sitemap.xml?
要創建sitemap.xml,您可以使用 Google XML Sitemaps 外掛Plugin。
外掛Plugin中是否存在“更多鏈接”功能?
不,外掛Plugin中沒有“更多鏈接”功能。因為“ more-link ”:
對SEO不利。 沒有人會用你的網站搜索你的網站e“更多”。 “rel = nofollow”也不會解決它。 對可用性不利。 標題上已有鏈接,“more-link”是頁面上不需要的元素。如果用戶無法理解標題是鏈接,那麼css樣式中存在問題,而不是外掛Plugin模板中的問題。如果需要更改外掛Plugin的代碼,該怎麼辦?
當您更改外掛Plugin的代碼時,您還應該將外掛Plugin的版本更改為“100”(例如)以避免更新,這可能會覆蓋和刪除您的代碼。