
內容簡介
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 的更多二進制文件
外掛標籤
開發者團隊
原文外掛簡介
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
