[WordPress] 外掛分享: Display Links by Category

首頁外掛目錄 › Display Links by Category
40+
安裝啟用
尚無評分
5217 天前
最後更新
問題解決
WordPress 3.2.1+ v1.0.1 上架:2011-11-24

內容簡介

這個外掛可以讓使用者透過自訂欄位,按照分類方式呈現他們在 WordPress 上的連結。

以下為設定概觀步驟:

啟用外掛(請參閱安裝標籤)
前往您想要放置連結/部落格的頁面/文章
確定自訂欄位可見(在編輯頁面或文章頁面上,點擊右上角的「螢幕選項」,勾選「自訂欄位」)
在自訂欄位下,點擊「輸入新連結」
在「名稱」欄位輸入一個 ID – 外掛預設使用「display_links」作為 ID
在「值」欄位輸入您想要顯示的連結分類名稱
點擊「新增自定欄位」按鈕
在文章內容區域或喜好的 widget 區域中輸入以下短代碼:[links_by_cat field_id="(先前在名稱欄位輸入的 ID)"]

注意,如果您在名稱欄位中使用了「display_links」,則不需要在短代碼中輸入「field_id」參數,只需輸入 [links_by_cat] 即可。

此短代碼還支援許多其他參數,可用於排序和結構化您的連結。您可以從以下頁面中找到參數清單(排除「類別」參數):https://codex.wordpress.org/Template_Tags/wp_list_bookmarks#Parameters

其他參數範例:

[links_by_cat orderby="rating"] -- 這是一個使用列表中 orderby 參數的範例,連結將以評分排序。

版本 1.0.1 新增:

短代碼現在支援顯示所有類別。請輸入:
[links_by_cat display_all]

同時,在版本 1.0.1 中引入了許多錯誤修正,請您升級外掛。

目前,每個自訂欄位輸入只支援一個類別,但我正計劃盡快更新外掛,使其支援多個類別。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Display Links by Category」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin allows users to display their WordPress links by category through custom fields.
The following gives a step-by-step setup overview:

Enable the plugin (check the installation tab)
Go to the page/post where you’d like to place your links/blogroll
Make sure that Custom Fields are visible (on the edit page or post page click on the “Screen Options” in the top right and make sure “Custom Fields” is checked off)
Under CUstom fields click on the enter new link
Enter an ID in the “Name” field – the plugin uses the ID “display_links” as a default
Enter the category name of the links you’d like to display in the “Value” field
Click on the “Add Custom Field” button
Enter the following shortcode into the post content area or the widget area you prefer: [links_by_cat field_id="(ID previously entered in Name field goes here)"]

Note that if you used “display_links” in the Name field, you do not need to enter the “field_id” parameter in the shortcode and can simply do: [links_by_cat]

The shortcode also supports many other parameters for ordering and structuring your links. All parameters on the list (except “category”) found on the following page are available: https://codex.wordpress.org/Template_Tags/wp_list_bookmarks#Parameters
Other parameter example:
[links_by_cat orderby="rating"] -- This is an example using the orderby parameter from the list. The links will now be ordered by their rating.

Added in 1.0.1:
The ability to display all categories has been added to the shortcode. Simply add:
[links_by_cat display_all]
Many bug fixes have also been introduced in version 1.0.1 as well, so please upgrade.
Currently, only one category is supported per Custom Field entry; however, I am looking to update the plugin soon so that it supports multiple categories.

文章
Filter
Apply Filters
Mastodon