[WordPress] 外掛分享: SB Child List

前言介紹

  • 這款 WordPress 外掛「SB Child List」是 2009-01-11 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 1000 個安裝啟用數。
  • 上一次更新是 2019-05-13,距離現在已有 2183 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 有 11 人給過評分。
  • 論壇上目前有 1 個提問,問題解答率 0%

外掛協作開發者

seanbarton |

外掛標籤

page | child | Parent | child list | sb_child_list |

內容簡介

這個外掛讓你把 WordPress 轉換成一個合格且易於導覽的 CMS。如果你在建立一個主要由樹狀結構頁面(例如信息網站)組成的網站,那麼這個外掛能夠有效的幫助你。在過去幾個月中,我已經收到了很多有關它的反饋,越來越多的人開始發現它可以提高他們網站的導航和易用性。

我希望在 WordPress 的頁面中顯示出一個清晰的層次結構。因此我決定建立一個名為「文章」(articles)的頁面,並將我的文章作為它的子頁面。

合理的想法是在「文章」頁面上顯示子頁面的列表,以及一張漂亮的圖片和一些介紹文本。但是在 WordPress 中似乎無法實現,因此我決定創建這個外掛來解決這個問題。

將 hook [sb_child_list] 添加到任何帖子或頁面中,默認會顯示一個無序列表,其中包含子頁面和鏈接。如果你想自己設置樣式,也不用擔心,因為你可以在設置頁面上使用模板系統進行設置。

另外還添加了另一個標籤 [sb_parent],它可以提供從任何子頁面返回至父頁面的鏈接。這使得你可以在「文章」例子中添加一個「點擊此處閱讀更多有關此主題的文章」鏈接。它也是基於模板的,所以可以隨意設置文案和樣式。

另外,你還可以使用這個簡寫:[sb_cat_list category=CatName],這個簡寫可以顯示指定類別名稱下的文章,可以通過可選的「限制」參數指定文章數量。

這個外掛還提供了一個小工具,如果存在子頁面,它就可以工作,類似於子頁面小工具或類似小工具。

我還添加了一個兄弟導航簡寫。你可以使用 [sb_sibling_next] 和 [sb_sibling_prev] 顯示按菜單順序和文章標題順序排序的下一頁和上一頁的鏈接,十分方便!你可以使用 orderby 參數選擇一個字段,並使用 order 選擇 ASC 或 DESC。

這個外掛還提供了一個簡單的模板系統,可以使用參數「template」([sb_child_list template = "2"])來建立多個 [sb_child_list] 和 [sb_cat_list] 模板。還添加了摘要支持和對 SB Uploader Plugin 的自定義字段(如果有必要,會顯示名為 post_image 的自定義字段)支持。

總的來說,簡寫清單如下:

[sb_child_list] – 允許的參數包括:「template」、「nest_level」、「orderby」和「order」(order 和 orderby 參數允許在此列表中指定的參數:https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters)。

[sb_parent]

[sb_grandparent]

[sb_cat_list]

[sb_sibling_next]

[sb_sibling_prev]

原文外掛簡介

This plugin lets you turn WordPress into a proper easily navigable CMS. Having a site made up mostly of pages in the form of a tree (an information site for example) was always a pain until I wrote this to help me out. I have had lots of feedback about it over the last few months and more and more people are finding ways they can use it to improve the navigation and usability of their sites
I wanted to show some sort of hierarchy in the pages inside WordPress. I decided to call one of my pages “articles” and have my articles use it as their parent.
Logically you would expect to see a list of the child pages on the articles page along with a pretty picture and some intro text. This doesn’t seem possible natively with WordPress so I decided to make it happen.
Adding the hook [sb_child_list] to any post or page will by default show an unordered list showing the children and links to them. If you prefer to style it yourself then don’t worry because you can do that too using the templating system on the settings page.
There is also add another tag, [sb_parent], that allows you to provide a back to parent link from any child. This enables you (in the articles example) to add a “click here to read more on this subject” link. It is also template based so it can say anything or look however you see fit
You can also use this shortcode: [sb_cat_list category=CatName] which does what it says on the tin, simply give it a category name and it will show the posts in that category for you with optional ‘limit’ argument
The plugin creates a widget for use also. This works if there is a sub page present. Much like a sub pages widget or similar.
I have added a shortcode for sibling navigation. You can use [sb_sibling_next] and [sb_sibling_prev] to show links to next and previous pages ordered by menu order followed by post title order. Handy indeed! You can use the argument orderby to select a field and order to choose ASC or DESC.
There is a simple templating system to allow multiple templates for [sb_child_list] and [sb_cat_list] with the argument ‘template’ ([sb_child_list template=”2″]). Also added excerpt support and support for the SB Uploader Plugin custom fields (custom field called post_image will show if necessary).
To round it all up.. Shortcode listings:
[sb_child_list]

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「SB Child List」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Mastodon