In WordPress to write articles, if the content of a lot, you may want to divide the article into several pages to allow visitors to browse, so as to maintain the beauty of the page, but also improve the speed of the Web page. But in the WordPress default provided by the button, you may not find the article paging function corresponding to the button, below I will tell you how to use the article paging function.
In the new version of WordPress, the official blocking the paging function of the shortcut button, although we can modify the source file to enable it, but considering that it will still expire after the upgrade and I do not bother to write plugins, here I do not describe how to restore the paging button, we do not have it can still be the article page.
1, first of all we want to confirm whether the template used to support the article paging this feature. Open your Template folder, a total of 2 files need to be modified (or perhaps 1), respectively, page.php (single page) and single.php (article content page, if any).
Open these two files and find the line where the article shows the function, it may be in the following two formats or its similar format:
<?php the_content (__ (' Read more ... '));?>
<?php the_content ();?>
If it does not have the following content (paging support), add it:
<?php wp_link_pages ();?>
Save the exit separately. The default function's paging effect is similar to Page:1 2 3, if you need more display styles, see the following or use div adornments:
Http://codex.wordpress.org/Template_Tags/wp_link_pages
2. Add pagination tags to the article or single page.
Open the article you want to edit, select the HTML source code mode, and add the following markup where you want the page to be paginated:
<!--nextpage-->
Note that each tag represents a page, and the nextpage tag is truncated by more.
The difference between nextpage and more tags:
As with the more tags, we just need to add a <!–-nextpage–-> tag after the paragraph that needs to be paginated (note to edit in HTML editing mode). Unlike the more tags, more tags can only be used once, and nextpage can be used many times, you can also be a long article divided into multiple pages.
WordPress implementation of long article/Log/single page paging function effect