WordPress's method of numbering the title of a blog
This article mainly introduces the method of adding page numbers to the blog title by WordPress. It is very detailed and has a certain reference value. Friends who are interested must finish it!
How does WordPress number the title of a blog?
In order to optimize the site to prevent duplicate content, many friends will add page numbers when paging articles or lists, which can prevent the emergence of duplicate headings. Next, let's introduce WordPress to add page number to the blog title.
1. Open header.php. This is before modification. The code is as follows:
If ($paged > = 2 | | $page > = 2) echo'|'. Sprintf (_ ('Page% slots,' twentyten'), max ($paged, $page))
2. The modified code is as follows:
If ($paged > = 2 | | $page > = 2) echo'|'. Sprintf (_ ('% s', 'twentyten'), max ($paged, $page))
3. Everyone's theme may be different. In fact, all you have to do is change 'Page% s' to 'page% s'. If you don't know how to program, you can add the following code to the template page:
The above is all the content of WordPress's method of numbering the title of the blog. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!