[WordPress] 外掛分享: Also In This Series

首頁外掛目錄 › Also In This Series
WordPress 外掛 Also In This Series 的封面圖片
40+
安裝啟用
★★★★★
5/5 分(5 則評價)
1510 天前
最後更新
問題解決
WordPress 4.6+ PHP 5.5+ v2.0.1 上架:2013-07-07

內容簡介

把相關的文章分組成系列。自動插入所有系列文章列表作為內容的一部分。

使用提供的shortcode 和 widget 手動嵌入系列列表。使用自訂模板覆蓋系列模板。

在Planetjon blog上有一篇關於此外掛的英文介紹。

使用方式

在文章的 Series manager 中創建新的 Series 標籤。通過快速編輯或完整編輯屏幕將文章添加到系列中。

在文章中屬於某個系列時,Also In This Series 可以配置為自動插入系列列表。

為此,請在設置選項中找到 Also In This Series 設置。

設置

Title heading level 可設置用於自動插入,shortcode 和 widget 中作為系列標題的 HTML 標籤。
Title template 可從標題預設列表中選擇預設標題模板,其中包括不顯示標題的模板。
Automatically display series listing on post 允許在屬於某個系列的文章中自動插入列表。
Order of series display 控制系列列表中文章(新文章先顯示或舊文章先顯示)的顯示順序。
Window series listing display 在系列列表的當前文章周圍創建一個窗口。這對於顯示整個列表很麻煩的大型系列很有用。
Do not display series listing 可防止顯示系列列表。若選中,將始終顯示指向該系列的鏈接。
Always show series link 強制顯示指向系列歸檔的鏈接,無論是否窗口化。若未選中,顯示整個系列列表時不顯示指向系列歸檔的鏈接。

Shortcode

要手動將文章的系列列表插入內容中,請使用 [alsointhisseries] shortcode。

如果該文章不屬於任何系列,則此舉不會產生任何效果。

要手動插入特定系列,請使用 帶有 "series-slug" 屬性的 shortcode,像這樣 [alsointhisseries series-slug=”your-series-slug”]。

shortcode 屬性包括

series-slug=”slug”
use-frame=”yes|no”
frame-width=”number”
sort-order=”asc|desc”
title-wrap=”h1|h2|h3|span”
title-template=”also-in|ordinal|none”
hide-series-listing=”yes|no”
always-link-series=”yes|no”

Widget

提供了一個顯示所有上述選項的 widget。

自訂模板

如果您想使用自己的系列列表模板,有兩種選擇。

將一個模板文件 also-in-this-series/serieslisting.php 放在您的主題中。
使用 alsointhisseries_template フィルタ,並提供絕對路徑到模板文件。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Also In This Series」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Group related posts in a series. Automatically insert a list of all posts in the series as part of the content.
Manually embed a series listing with the provided shortcode and widget. Override the series template with a custom template.
A great rundown of the plugin is available on the Planetjon blog.
How To Use
Create new Series terms from the Series manager under Posts. Add posts to series either through the quick edit screen or through the full edit screen.
Also In This Series can be configured to automatically insert a series listing in posts belonging to a series.
To do so, navigate to Also In This Series settings under the settings option.
Settings

Title heading level sets the HTML tag that will wrap the series title in series inserted automatically, with shortcodes, and with widgets.
Title template picks from a list of title presets for displaying the title, including a presetfor no title.
Automatically display series listing on post allows for automatic listing insertion in posts that belong to a series.
Order of series display controls the order of posts (newest first or oldest first) in series listings.
Window series listing display creates a window around the current post in a series listing. This is useful for large series where it is cumbersome to show the entire listing at once.
Do not display series listing prevents the series listing from being shown. When checked, a link to the series is always shown.
Always show series link forces a link to the series archive regardless of windowing. When unchecked, a link to the seriess will not be shown when the entire series listing is visible.

Shortcode
To manually insert the series listing of a post within a series as part of the content, use the shortcode [alsointhisseries].
This will have no effect if the post isn’t in a series.
To manually insert a specific series, use the series-slug attribute with the shortcode like [alsointhisseries series-slug=”your-series-slug”].
The shortcode attributes are

series-slug=”slug”
use-frame=”yes|no”
frame-width=”number”
sort-order=”asc|desc”
title-wrap=”h1|h2|h3|span”
title-template=”also-in|ordinal|none”
hide-series-listing=”yes|no”
always-link-series=”yes|no”

Widget
A widget that exposes all of the above options is available.
Custom Template
If you’d like to use your own series listing template, there are two options available.

Place a template file also-in-this-series/serieslisting.php in your theme.
Use the alsointhisseries_template filter to provide an absolute path to a template file.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon