Write an article in WordPress. if there is a lot of content, you may want to divide the article into several pages for visitors to browse. This not only keeps the appearance of the webpage, but also improves the speed of opening the webpage. However, in the default WordPress button, you may not be able to find the button corresponding to the article paging function. next I will show you how to use the article paging function. In a certain version of WordPress, the quick buttons of the paging function are officially blocked,
Write an article in WordPress. if there is a lot of content, you may want to divide the article into several pages for visitors to browse. This not only keeps the appearance of the webpage, but also improves the speed of opening the webpage. However, in the default WordPress button, you may not be able to find the button corresponding to the article paging function. next I will show you how to use the article paging function.
In a certain version of WordPress, the shortcut button of the paging function is officially blocked. although we can enable it by modifying the source file, it still becomes invalid after the upgrade, and I am too lazy to write the plug-in, here I will not describe how to restore the paging button. we don't need to use it to still pagination the article.
1. First, we need to confirm whether the template used supports the article paging feature. Open your template folder. a total of two files need to be modified (or possibly one), which are index. php (homepage article list) and single. php (article content page, if any ).
Open these two files and find the line of the function shown in the article. it may be in the following two formats or similar formats:
If it does not contain the following content (paging is supported), add it:
Save and exit. The paging effect of the default function is similar to Page: 1 2 3. if you need more display styles, see the following content or use div decoration:
Http://codex.wordpress.org/Template_Tags/wp_link_pages
2. add a paging tag in the article.
Open the article to be edited, select the HTML source code mode, and add the following tag to the page:
Note that each tag indicates a page and the nextpage tag is truncated by more.