Plugin này chưa được cập nhật với 3 phiên bản mới nhất của WordPress. Nó có thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress mới nhất.

Automatically Paginate Posts

Mô tả

Automatically paginate WordPress content by inserting the <!--nextpage--> Quicktag at intervals controlled by plugin’s settings.

Option is provided to control which post types are automatically paginated (default is the “Post” post type). Supports any public custom post types (non-public types are supported via the autopaging_post_types filter).

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

Cài đặt

  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.

Hỏi đáp

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 content?

Yes, the plugin adds a metabox (Classic Editor) and a sidebar component (Block Editor) 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.
  • autopaging_supported_block_types_for_word_counts – specify which block types are considered when splitting a block-editor post by word count.

Đánh giá

31 Tháng Mười, 2021
Thank you for this free plugin.
17 Tháng Tám, 2020
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.
Đọc tất cả 16 đánh giá

Người đóng góp & Lập trình viên

“Automatically Paginate Posts” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

“Automatically Paginate Posts” đã được dịch qua 1 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.

Dịch “Automatically Paginate Posts” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi

0.3.1

  • Fix translation support.

0.3

  • Add support for content authored in block editor (Gutenberg).
  • Add native block-editor control to replace legacy metabox.
  • Fix bug that created empty pages.

0.2

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

0.1

  • Initial release.