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');
add_settings_field('autopaging-num-words',__('Number of words for each page:','autopaging'),array($this,'settings_field_num_words'),'reading','autopaging');
}
/**
...
...
@@ -142,7 +152,7 @@ class Automatically_Paginate_Posts {
<pclass="description">If set, each page will contain approximately this many words, more or less depending on paragraph lengths, and Number of pages will be ignored.</p>
<?php
}
/**
* Sanitize number of words input. No fewer than 10 (by default, filterable by autopaging_min_num_words)
@@ -16,7 +16,7 @@ Automatically paginate WordPress content by inserting the <!--nextpage-->
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.
Option is also provided to specify how many pages content should be broken out over, or how many words should be included per page.
== Installation ==
...
...
@@ -48,7 +48,13 @@ You can also use the filter `autopaging_post_types` to add support by appending
= 0.1 =
* Initial release.
= 0.2 =
* Allow for number of words to be specified instead of number of pages.
== Upgrade Notice ==
= 0.1 =
Initial release
\ No newline at end of file
Initial release
= 0.2 =
* Allow for number of words to be specified instead of number of pages.