add_settings_field('autopaging-post-types',__('Supported post types:','autopaging'),array($this,'settings_field_post_types'),'reading','autopaging');
add_settings_field('autopaging-num-pages',__('Number of pages to split content into:','autopaging'),array($this,'settings_field_num_pages'),'reading','autopaging');
}
...
...
@@ -210,13 +210,13 @@ class Automatically_Paginate_Posts {
@@ -224,7 +224,7 @@ class Automatically_Paginate_Posts {
* Render autopaging metabox
*
* @param object $post
* @uses esc_attr, checked, wp_nonce_field
* @uses esc_attr, checked, _e, __, wp_nonce_field
* @return string
*/
publicfunctionmeta_box_autopaging($post){
...
...
@@ -232,8 +232,8 @@ class Automatically_Paginate_Posts {
<p>
<inputtype="checkbox"name="<?phpechoesc_attr($this->meta_key_disable_autopaging);?>"id="<?phpechoesc_attr($this->meta_key_disable_autopaging);?>_checkbox"value="1"<?phpchecked((bool)get_post_meta($post->ID,$this->meta_key_disable_autopaging,true));?>/><labelfor="<?phpechoesc_attr($this->meta_key_disable_autopaging);?>_checkbox">Disable autopaging for this post?</label>
</p>
<pclass="description">Check the box above to prevent this post from automatically being split over two pages.</p>
<pclass="description">Note that if the <code><!--nextpage--></code> Quicktag is used to manually page this post, automatic paging won't be applied, regardless of the setting above.</p>
<pclass="description"><?php_e('Check the box above to prevent this post from automatically being split over multiple pages.','autopaging');?></p>
<pclass="description"><?phpprintf(__('Note that if the %1$s Quicktag is used to manually page this post, automatic paging won\'t be applied, regardless of the setting above.','autopaging'),'<code><!--nextpage--></code>');?></p>
Automatically insert <!--nextpage--> Quicktag into WordPress content
\ No newline at end of file
Automatically paginate posts by inserting the <!--nextpage--> Quicktag into WordPress posts, pages, or custom post type content.
== DESCRIPTION ==
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.
== Installation ==
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.
== Frequently Asked Questions ==
= 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.
* `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.