6.3.3.10. Pagination Section
This section contains settings for getting next page URLs of posts. When the next page URLs exist, the plugin will save the posts as many pages.
For example, if the target post has 5
pages and you tell the plugin about the next page URLs,
then the plugin will save all 5
pages of the target post. The post saved to your site will
have those 5
pages as well.
Tip
You can use Tester Page to test if the CSS selectors you defined can find the next page URLs properly. Please test at least the first page, a page in the middle, and the last page of the target post in order to make sure everything works as intended.
Tip
To split the posts into multiple pages, the plugin will combine contents retrieved from each
page of the target post by using <!--nextpage-->
[1] tag. When this is done,
WordPress shows the posts in multiple pages. If you want the post to be single page, you can
check Save as single page? setting’s checkbox.
6.3.3.10.1. Paginate posts?
If the target post is paginated, check this so that the plugin will crawl all pages of the post. Otherwise, only the first page of the post will be crawled.
Important
Other settings under this section will be visible only if this setting’s checkbox is checked.
6.3.3.10.2. Post Next Page URL Selectors
Define CSS selectors that find the next page URL in each page of the target post. This is a type of Selector and Attribute Setting. If you enter more than one selector, the first match will be used.
The plugin will use the CSS selectors defined in this setting to find the next page URL of the target post. The plugin will keep crawling the next page as long as it finds a next page URL in the current page.
Important
For the plugin to understand that a page is the last page of a post, the CSS selectors you define in this setting must not find a next page URL in the last page of the post. The plugin will keep crawling the next page URL until it cannot find a next page URL. Therefore, you must make sure that the CSS selectors do not find a next page URL in the last page of the post.
Important
Please test your CSS selectors by using multiple pages of the target post. Please make sure these are satisfied:
- In the first page of the target post, the plugin must be able to find the URL of the second page.
- In the second page of the target post, the plugin must be able to find the URL of the third page.
- In the last page of the target post, the plugin must not find a next page URL.
One of the frequently-made mistakes is that the CSS selector is not tested in the second page of the target post and that CSS selector finds the first page’s URL in the second page of the target post. In that case, the plugin will keep crawling the first and the second pages, respectively, forever. So, please take this seriously and just do the tests listed above. It is as easy as changing Test Post URL and clicking to button of the CSS selector.
Tip
If you configure this setting, you do not have to configure Post All Page URLs Selectors setting.
6.3.3.10.3. Post All Page URLs Selectors
Define CSS selectors that find URLs of all pages of the target post, at once. This is a type of Selector and Attribute Setting. If you enter more than one selector, the first match will be used.
Sometimes there is no next page URL. Instead, a post page contains the links to all of the post pages (or parts). If this is the case, you should use this. If a next page URL can be found in each page of the target post, you can use Post Next Page URL Selectors.
Important
The plugin will crawl the pages considering the position of the links in the source code of the target page. So, the link that has the smallest line number will be the first page, while the one having the biggest line number will be the last.
Tip
If you configure this setting, you do not have to configure Post Next Page URL Selectors setting.
Tip
If the found URLs contain the current page URL, the plugin will remove it automatically. So, it is OK if the found URLs contain the current page URL.
6.3.3.10.4. Save as single page?
When this checkbox is checked, the plugin will merge the contents retrieved from the pages of the target post into a single page. So, the saved post will only have one page containing the contents existing in all pages of the target post.
Footnotes
[1] | https://codex.wordpress.org/Styling_Page-Links |