[WordPress] 外掛分享: Ambrosite Next/Previous Page Link Plus

首頁外掛目錄 › Ambrosite Next/Previous Page Link Plus
900+
安裝啟用
★★★★★
5/5 分(7 則評價)
5143 天前
最後更新
問題解決
WordPress 2.5+ v1.1 上架:2011-08-10

內容簡介

重要提示:請確認您使用的是正確的外掛程式。

Next/Previous Page Link Plus 是用於頁面樣板的。
Next/Previous Post Link Plus 是用於單篇文章樣板的。

這兩個外掛程式的名稱相近,但實際功能不同。若您安裝了錯誤的外掛程式,則會出現「呼叫未定義函式」的錯誤。如果您想為文章建立下一篇/上一篇的連結(包含自訂文章類型),請詳閱以下網址:
https://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/

此外掛程式會建立兩個新的模板標籤 — next_page_link_plus 和 previous_page_link_plus — 用於生成頁面的下一頁/上一頁導覽連結。這兩個標籤包含以下選項:

根據任何欄位(包括字母順序、日期和 menu_order)排序下一頁/上一頁連結。
根據自訂欄位排序下一頁/上一頁連結(支援字串和整數排序)。
如果沒有下一頁/上一頁,則循環到第一頁(反之亦然)。
顯示「第一頁|上一頁|下一頁|最後一頁」導覽連結中的第一頁/最後一頁。
在下一頁/上一頁連結旁顯示特色圖像(WordPress 2.9 或更高版本)。
截斷連結標題到任何長度,並在工具提示中顯示自訂文本。
顯示下一頁/上一頁連結的標題、日期、作者和元數值。
為 %date 變數指定自訂日期格式。
將下一頁/上一頁連結限制為同一父頁面、作者或自訂欄位值。
排除或包含個別頁面 ID。
返回多個下一頁/上一頁連結(例如,在 HTML 清單中的下 N 個頁面連結)。
返回下一頁/上一頁連結的 ID、標題、日期、href 屬性或文章對象,而不是在屏幕上顯示連結。
如果找不到下一頁/上一頁連結,則返回 false,以便主題可以有條件地顯示替代文本。

有關配置外掛程式的詳細文件,請參閱以下網址:
http://www.ambrosite.com/plugins/next-previous-page-link-plus-for-wordpress

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Ambrosite Next/Previous Page Link Plus」→ 直接安裝(推薦)

原文外掛簡介

IMPORTANT: Make sure you are using the right plugin.

Next/Previous Page Link Plus is intended for use in page templates.
Next/Previous Post Link Plus is intended for use in single post templates.

The two plugins have similar sounding, but different, function names. If you mistakenly install the wrong plugin, you will get a “call to undefined function” error. If you want to create next/previous links for your posts (including custom post types), please check out:
https://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/
This plugin creates two new template tags — next_page_link_plus and previous_page_link_plus — which may be used to generate next/previous navigation links for pages. The new tags include the following options:

Sort the next/previous page links on any column, including alphabetically, by date, and by menu_order.
Sort the next/previous links on custom fields (both string and integer sorts are supported).
Loop around to the first page if there is no next page (and vice versa).
Retrieve the first/last page, rather than the previous/next page (for First|Previous|Next|Last navigation links).
Display the featured image alongside the links (WordPress 2.9 or higher).
Truncate the link titles to any length, and display custom text in the tooltip.
Display the title, date, author, and meta value of the next/previous links.
Specify a custom date format for the %date variable.
Restrict next/previous links to same parent page, author, or custom field value.
Exclude or include individual page IDs.
Return multiple next/previous links (e.g. the next N links, in an HTML list).
Return the ID, title, date, href attribute, or post object of the next/previous links, instead of echoing them to the screen.
Return false if no next/previous link is found, so themes may conditionally display alternate text.

Extensive documentation on configuring the plugin may be found here:
http://www.ambrosite.com/plugins/next-previous-page-link-plus-for-wordpress

延伸相關外掛

文章
Filter
Apply Filters
Mastodon