该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Automatically Paginate Posts

描述

Automatically paginate WordPress content by inserting the <!–nextpage–> Quicktag.

Option is provided to control what post types are automatically paginated (default is just post). Supports post, page, and any public custom post types.

Option is also provided to specify how many pages content should be broken out over, or how many words should be included per page.

安装

  1. Upload automatically-paginate-posts to /wp-content/plugins/.
  2. Activate plugin through the WordPress Plugins menu.
  3. Configure plugin by going to Settings > Reading.

常见问题

Where do I set the plugin’s options

The plugin’s options are added to the built-in Reading settings page in WordPress.

Can I disable the plugin’s functionality for specific posts, pages, or custom post type objects?

Yes, the plugin adds a metabox to individual items in supported post types that allows the autopaging to be disabled on a per-post basis.

How can I add support for my custom post type?

Navigate to Settings > Reading in WP Admin to enable this plugin for your custom post type.

You can also use the filter autopaging_post_types to add support by appending your post type’s name to the array.

What filters does this plugin include?
  • autopaging_post_types – modify the post types supported by this plugin. Will override the values set under Settings > Reading.
  • autopaging_num_pages_default – modify the default number of pages over which a post is displayed. Will override the value set under Settings > Reading.
  • autopaging_max_num_pages – override the maximum number of pages available in the settings page dropdown when the paging type is “pages”.
  • autopaging_max_num_words – override the minimum number of words allowed per page page when the paging type is “words”.
  • autopaging_num_pages – change the number of pages content is displayed on at runtime. Filter provides access to the full post object in addition to the number of pages.
  • autopaging_num_words – change the number of words displayed per page at runtime. Filter provides access to the full post object in addition to the number of words.

评价

2020年8月17日
After updating to WordPress 5.5 a custom function that automated pagination broke on all sites. Thankfully this plugin makes it extraordinarily easy to have automated page breaks along with an unexpected feature called "Approximate words per page". It even worked with other custom code. Something that would benefit anyone who either wants to break up large pages or load other things like maps into tabs.
2020年8月4日
"Automatically Paginate Posts" is the easiest, non gimmicky Numeric Pagination WordPress Plugin. I know I have used it before, and was getting frustrated not finding it; and trying all the other free and paid plugins without the same a couple clicks simple pagination. - Plugin can set numeric links/buttons to 10 pages in total. - Plugin can split the page by words [I love it!] - Easy, straight forward plugin Thank you for the plugin.
2019年1月14日
the <!--nextpage--> tag allows you to individually paginate your selected pages/posts. Hint: If you want to control which posts shall be paginated, you can set the "Auto pagination" criteria to 100'000 words and individually work with the tag above. This way you only have paginated pages/posts where intended!
2017年9月10日
Solved my minor goal, getting rid of my <!-- nextpage -->'s, so super cool.
阅读所有14条评价

贡献者及开发者

“Automatically Paginate Posts” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

0.1

  • Initial release.

0.2

  • Allow for number of words to be specified instead of number of pages.