[WordPress] 外掛分享: Next Page, Not Next Post

首頁外掛目錄 › Next Page, Not Next Post
WordPress 外掛 Next Page, Not Next Post 的封面圖片
1,000+
安裝啟用
★★★★★
5/5 分(12 則評價)
4213 天前
最後更新
問題解決
WordPress 2.7+ v0.3.0 上架:2009-04-27

內容簡介

Next Page, Not Next Post 是一個非常簡單的外掛,用於在兄弟頁面之間建立導航。

該外掛提供了兩個新功能,next_page_not_post($anchor_text, $loop, $sort) 和 previous_page_not_post($anchor_text, $loop, $sort)。 每個功能都有三個簡單的選項。

錨點文本 - 手動設置錨點文本或使用頁面標題。 使用 %title 來使用頁面標題與其他字符串。 預設為頁面標題,只需留空即可。
循環 - 鏈接第一個元素到最後一個,然後將最後一個鏈接到第一個,或者不鏈接。 預設為不循環。 若要循環,請設置為 true; 若要基於近親導航,則設置為 cousins; 若要循環基於近親導航,則設置為 cousinsloop。
獲取頁面 - 用於確定如何排序結果。 使用 Get Pages 說明文件 查找此處的所有可用選項。 預設為菜單順序升序。

短碼 您可以在頁面內容中使用 [next_page] 和 [previous_page] 短碼。 支援的選項為 ‘anchor’, ‘loop’ 和 ‘getPagesQuery’。

有關 Next Page, Not Next Post 的更多二進制文件

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Next Page, Not Next Post」→ 直接安裝(推薦)

原文外掛簡介

Next Page, Not Next Post is a very simple plugin that creates navigation between sibling pages.
This plugin gives you two new functions, next_page_not_post($anchor_text, $loop, $sort) & previous_page_not_post($anchor_text, $loop, $sort). Each function has three simple options.

Anchor Text – Either set the anchor text manually or use the page title. Use %title to use page title with other strings. Defaults to page title, just leave blank for that.
Looping – Link the first element to the last and the last to the first, or not. Defaults to not looping. Set to true for looping, cousins for cousin based navigation and cousinsloop for cousins navigation that loops.
Get Pages – This is used to determine how to sort your results. Use the documentation at Get Pages to find all available options here. Defaults to menu_order ascending.

SHORTCODES You can use [next_page] and [previous_page] shortcodes within your page content. Supported options are ‘anchor’, ‘loop’ and ‘getPagesQuery’.
More documentation for Next Page, Not Next Post on BinaryM.com

延伸相關外掛

文章
Filter
Apply Filters
Mastodon