[WordPress] 外掛分享: Adjustly Nextpage

首頁外掛目錄 › Adjustly Nextpage
WordPress 外掛 Adjustly Nextpage 的封面圖片
100+
安裝啟用
★★★★★
5/5 分(2 則評價)
5125 天前
最後更新
問題解決
WordPress 3.3+ v0.1 上架:2012-03-06

內容簡介

這款外掛是為了我們 Adjustly 主題所開發,它允許作者在 WordPress 可視化和 HTML 工具列中創建多頁文章和頁面。這不是文章導航功能,而是專門添加分頁符號到一個非常長的頁面/文章中。我們沒有創建任何新功能,僅將現有功能添加到工具列中。

試試 Demo

如果您想要看看 Adjustly Nextpage 的預設安裝功能,我們在這裡有一個冗長的範例文章。

http://www.psdcovers.com/adjustly-nextpage/

使用方法

使用方法與添加 more 分隔符號的方式相同,如下所示:

<!--nextpage-->

就是這樣。WordPress 已經支持將其作為頁面分隔符號在查看文章時處理,並會在每個頁面或帖子的末尾添加頁面導航工具。事實上,<!--nextpage--> 至少已經使用了 4 年,在至少版本 1.5.1 中已經在 wp-admin/quicktags.js 中被注釋了。

WordPress 知道您的文章實際上不是 2 個或多個獨立頁面,因此在後端仍將整個頁面/文章視為單個非常長的文章進行編輯。您不會跳躍到各個部分,與您當前編輯頁面和文章的方法相比,不會發生任何變化。

備註

目前還沒有備註。

疑難排解

嗨,我安裝了 3.3+ 但不起作用!

如果在您的文章末尾無法看到任何分頁工具,那麼很可能是您的主題沒有為此功能進行適配。解決方法很簡單,在主題的 single.php 文件中添加以下代碼:

<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'adjustly' ), 'after' => '</div>' ) ); ?>

在 comments_template() 代碼之前添加此代碼,或將其移動到適合您的位置。您可能需要在代碼中添加您的主題名稱(刪除「adjustly」,並將您的主題名稱放入其中)。

您還必須在 page.php 中添加上述代碼(代碼相同)。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Adjustly Nextpage」→ 直接安裝(推薦)

原文外掛簡介

Developed internally for our Adjustly theme, this plugin allows authors to create multi-page posts and pages to the WordPress Visual and HTML toolbar. This is not a post-to-post navigation feature, this is specifically about adding page breaks to a single, very long page/post. We did not create any new features with this plugin, it simply brings back an existing feature to the toolbar.
Try the Demo
If you’re interested in seeing what a default installation of Adjustly Nextpage has to offer, we have a verbose sample post located here.
http://www.psdcovers.com/adjustly-nextpage/
Usage
Usage is identical to adding the more separator and looks as follows:

文章
Filter
Apply Filters
Mastodon