這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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:

<!--nextpage-->

That’s it. WordPress already has support for treating this as a page break when viewing the article and will add a page navigation tool at the end of each page or post. In fact, <!--nextpage--> has been around for at least 4 years and has been commented out in wp-admin/quicktags.js since at least version 1.5.1

WordPress knows your article is not really 2 or more individual pages so your entire page/post is still edited as a single, very long post, on the backend. You will not be jumping from section to section, nothing changes with regards to how you currently edit pages and posts.

Notes

None yet.

Troubleshooting

  1. Hey, I have 3.3+ installed but it’s not working!

If you can’t see any pagination tools at the end of your post then it’s likely that your theme was not made to accomodate this feature. The fix is easy, add the following code to your single.php file inside your theme:

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

Add this code just prior to the comments_template() code or move it around to see where it suits you best. You may want to add the name of your theme to the code (remove “adjustly” and put your theme name in its place).

You will aslo have to add the above code to page.php as well (code is identical).

螢幕擷圖

  • Here is the Nextpage button highlighted for both the Visual and HTML toolbars.

安裝方式

  1. Upload adjustly-nextpage to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Create a new page or post, the nextpage button will appear in both the Visual and HTML toolbar
  4. Leave a comment at http://www.psdcovers.com/adjustly-nextpage/

常見問題集

Can I use my existing WordPress theme?

Yes! However, this plugin makes use of Qtags which were introduced in WordPress 3.3 so the functionality is limited to WordPress installations 3.3 and above.

Hey, I disabled the plugin but my pages are still multi-paged! WTF! (wow that’s funny)

This plugin simply surfaces a feature that has been subdued by the WordPress team in order to streamline the Visual and HTML editors. The decision to hide a range of buttons was to reduce the amount of clutter in the admin UI and only leave the absolute minimum that users needed to create content. If you need more tools you could read the codex and learn what other shortcodes exist etc.

In short, once you start using the <!--nextpage--> in your posts you are stuck with the results. It’s no different that deciding you no-longer want any <b> tags to work after using them in every single page and post for months on end.

When you disable this plugin, the “next page” buttons will disappear from the HTML and Visual editor toolbars but any pages and post that made use of <!--nextpage--> will continue to be treated as multi-page posts. Remember, this functionality is built into WordPress and has nothing to do with this plugin. This plugin only makes the button visible in the editors.

I am new to Social, do you have a Facebook page?

Yes we do, but as our brand identity… PSDCovers. Please like!

How about Twitter?

Yes! @psdcovers does the twitter. please follow!

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Adjustly Nextpage〉的開發相關工作。

參與者

將〈Adjustly Nextpage〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.1

  • Unhides the Next Page button in the visual editor
  • Adds a Next Page button to the HTML editor